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 AuthInfo
createFromSubject
(@NotNull Subject subject) getAttribute
(String attributeName) Returns the attribute with the given name ornull
if no attribute with thatattributeName
exists.@NotNull String[]
Returns the attribute names associated with this instance.Returns the set of principals associated with thisAuthInfo
instance.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: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. -
getAttributeNames
Description copied from interface:AuthInfo
Returns the attribute names associated with this instance.- Specified by:
getAttributeNames
in interfaceAuthInfo
- Returns:
- The attribute names with that instance or an empty array if no attributes are present.
-
getAttribute
Description copied from interface:AuthInfo
Returns the attribute with the given name ornull
if no attribute with thatattributeName
exists.- Specified by:
getAttribute
in interfaceAuthInfo
- Parameters:
attributeName
- The attribute name.- Returns:
- The attribute or
null
.
-
getPrincipals
Description copied from interface:AuthInfo
Returns the set of principals associated with thisAuthInfo
instance.- Specified by:
getPrincipals
in interfaceAuthInfo
- Returns:
- A set of principals.
-