java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.AuthInfoImpl
All Implemented Interfaces:
AuthInfo

public final class AuthInfoImpl extends Object implements AuthInfo
Default implementation of the AuthInfo interface.
  • Constructor Details

    • AuthInfoImpl

      public AuthInfoImpl(@Nullable @Nullable String userID, @Nullable @Nullable Map<String,?> attributes, @Nullable @Nullable Set<? extends Principal> principals)
    • AuthInfoImpl

      public AuthInfoImpl(@Nullable @Nullable String userID, @Nullable @Nullable Map<String,?> attributes, @Nullable @Nullable Iterable<? extends Principal> principals)
  • Method Details

    • createFromSubject

      public static AuthInfo createFromSubject(@NotNull @NotNull Subject subject)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUserID

      public String getUserID()
      Description copied from interface: AuthInfo
      Return the user ID to be exposed on the JCR Session object. It refers to the ID of the user associated with the Credentials passed to the repository login.
      Specified by:
      getUserID in interface AuthInfo
      Returns:
      the user ID such as exposed on the JCR Session object.
    • getAttributeNames

      @NotNull public @NotNull String[] getAttributeNames()
      Description copied from interface: AuthInfo
      Returns the attribute names associated with this instance.
      Specified by:
      getAttributeNames in interface AuthInfo
      Returns:
      The attribute names with that instance or an empty array if no attributes are present.
    • getAttribute

      public Object getAttribute(String attributeName)
      Description copied from interface: AuthInfo
      Returns the attribute with the given name or null if no attribute with that attributeName exists.
      Specified by:
      getAttribute in interface AuthInfo
      Parameters:
      attributeName - The attribute name.
      Returns:
      The attribute or null.
    • getPrincipals

      @NotNull public @NotNull Set<Principal> getPrincipals()
      Description copied from interface: AuthInfo
      Returns the set of principals associated with this AuthInfo instance.
      Specified by:
      getPrincipals in interface AuthInfo
      Returns:
      A set of principals.