Interface TokenOwnerPrincipal

  • All Superinterfaces:
    java.security.Principal

    @NotExtensible
    public interface TokenOwnerPrincipal
    extends java.security.Principal
    A principal implementation for a user represented by an access token.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of this principal.
      com.fasterxml.jackson.databind.node.ObjectNode getResource()
      Gets the token owner's attributes.
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies, toString
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of this principal.
        Specified by:
        getName in interface java.security.Principal
        Returns:
        The name of this principal.
      • getResource

        com.fasterxml.jackson.databind.node.ObjectNode getResource()
        Gets the token owner's attributes.
        Returns:
        The token owner's attributes as a JSON object. May be null.