Class AuthInfoImpl
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.spi.security.authentication.AuthInfoImpl
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AuthInfoImpl(@Nullable java.lang.String userID, @Nullable java.util.Map<java.lang.String,?> attributes, @Nullable java.lang.Iterable<? extends java.security.Principal> principals)AuthInfoImpl(@Nullable java.lang.String userID, @Nullable java.util.Map<java.lang.String,?> attributes, @Nullable java.util.Set<? extends java.security.Principal> principals) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthInfocreateFromSubject(@NotNull javax.security.auth.Subject subject)java.lang.ObjectgetAttribute(java.lang.String attributeName)Returns the attribute with the given name ornullif no attribute with thatattributeNameexists.@NotNull java.lang.String[]getAttributeNames()Returns the attribute names associated with this instance.@NotNull java.util.Set<java.security.Principal>getPrincipals()Returns the set of principals associated with thisAuthInfoinstance.java.lang.StringgetUserID()Return the user ID to be exposed on the JCR Session object.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
AuthInfoImpl
public AuthInfoImpl(@Nullable @Nullable java.lang.String userID, @Nullable @Nullable java.util.Map<java.lang.String,?> attributes, @Nullable @Nullable java.util.Set<? extends java.security.Principal> principals) 
- 
AuthInfoImpl
public AuthInfoImpl(@Nullable @Nullable java.lang.String userID, @Nullable @Nullable java.util.Map<java.lang.String,?> attributes, @Nullable @Nullable java.lang.Iterable<? extends java.security.Principal> principals) 
 - 
 
- 
Method Detail
- 
createFromSubject
public static AuthInfo createFromSubject(@NotNull @NotNull javax.security.auth.Subject subject)
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
getUserID
public java.lang.String 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
@NotNull public @NotNull java.lang.String[] 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
public java.lang.Object getAttribute(java.lang.String attributeName)
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
@NotNull public @NotNull java.util.Set<java.security.Principal> getPrincipals()
Description copied from interface:AuthInfoReturns the set of principals associated with thisAuthInfoinstance.- Specified by:
 getPrincipalsin interfaceAuthInfo- Returns:
 - A set of principals.
 
 
 - 
 
 -