| 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.Objectpublic java.lang.String getUserID()
AuthInfo@NotNull public @NotNull java.lang.String[] getAttributeNames()
AuthInfogetAttributeNames in interface AuthInfopublic java.lang.Object getAttribute(java.lang.String attributeName)
AuthInfonull if no attribute
with that attributeName exists.getAttribute in interface AuthInfoattributeName - The attribute name.null.@NotNull public @NotNull java.util.Set<java.security.Principal> getPrincipals()
AuthInfoAuthInfo instance.getPrincipals in interface AuthInfoCopyright © 2010 - 2023 Adobe. All Rights Reserved