Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
static AuthInfo |
createFromSubject(@NotNull 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. |
@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 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(@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)
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)
public static AuthInfo createFromSubject(@NotNull @NotNull javax.security.auth.Subject subject)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUserID()
AuthInfo
@NotNull public @NotNull 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
.@NotNull public @NotNull java.util.Set<java.security.Principal> getPrincipals()
AuthInfo
AuthInfo
instance.getPrincipals
in interface AuthInfo
Copyright © 2010 - 2020 Adobe. All Rights Reserved