Constructor and Description |
---|
AuthInfoImpl(java.lang.String userID,
java.util.Map<java.lang.String,?> attributes,
java.util.Set<? extends java.security.Principal> principals) |
Modifier and Type | Method and Description |
---|---|
static AuthInfo |
createFromSubject(javax.security.auth.Subject subject) |
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns the attribute with the given name or
null if no attribute
with that attributeName exists. |
java.lang.String[] |
getAttributeNames()
Returns the attribute names associated with this instance.
|
java.util.Set<java.security.Principal> |
getPrincipals()
Returns the set of principals associated with this
AuthInfo instance. |
java.lang.String |
getUserID()
Return the user ID to be exposed on the JCR Session object.
|
java.lang.String |
toString() |
public AuthInfoImpl(java.lang.String userID, java.util.Map<java.lang.String,?> attributes, java.util.Set<? extends java.security.Principal> principals)
public static AuthInfo createFromSubject(javax.security.auth.Subject subject)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUserID()
AuthInfo
public java.lang.String[] getAttributeNames()
AuthInfo
getAttributeNames
in interface AuthInfo
public java.lang.Object getAttribute(java.lang.String attributeName)
AuthInfo
null
if no attribute
with that attributeName
exists.getAttribute
in interface AuthInfo
attributeName
- The attribute name.null
.public java.util.Set<java.security.Principal> getPrincipals()
AuthInfo
AuthInfo
instance.getPrincipals
in interface AuthInfo
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"