Class AuthInfoImpl
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.AuthInfoImpl
- All Implemented Interfaces:
AuthInfo
Default implementation of the AuthInfo interface.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthInfocreateFromSubject(@NotNull Subject subject) getAttribute(String attributeName) Returns the attribute with the given name ornullif no attribute with thatattributeNameexists.@NotNull String[]Returns the attribute names associated with this instance.Returns the set of principals associated with thisAuthInfoinstance.Return the user ID to be exposed on the JCR Session object.toString()
-
Constructor Details
-
AuthInfoImpl
-
AuthInfoImpl
-
-
Method Details
-
createFromSubject
-
toString
-
getUserID
Description copied from interface:AuthInfoReturn 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. -
getAttributeNames
Description copied from interface:AuthInfoReturns the attribute names associated with this instance.- Specified by:
getAttributeNamesin interfaceAuthInfo- Returns:
- The attribute names with that instance or an empty array if no attributes are present.
-
getAttribute
Description copied from interface:AuthInfoReturns the attribute with the given name ornullif no attribute with thatattributeNameexists.- Specified by:
getAttributein interfaceAuthInfo- Parameters:
attributeName- The attribute name.- Returns:
- The attribute or
null.
-
getPrincipals
Description copied from interface:AuthInfoReturns the set of principals associated with thisAuthInfoinstance.- Specified by:
getPrincipalsin interfaceAuthInfo- Returns:
- A set of principals.
-