public interface Saml2AuthenticatedPrincipal extends AuthenticatedPrincipal
AuthenticatedPrincipal
.Modifier and Type | Method and Description |
---|---|
default <A> java.util.List<A> |
getAttribute(java.lang.String name)
Get the Saml2 token attribute by name
|
default java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getAttributes()
Get the Saml2 token attributes
|
default <A> A |
getFirstAttribute(java.lang.String name)
Get the first value of Saml2 token attribute by name
|
getName
@Nullable default <A> A getFirstAttribute(java.lang.String name)
A
- the type of the attributename
- the name of the attributenull
otherwise@Nullable default <A> java.util.List<A> getAttribute(java.lang.String name)
A
- the type of the attributename
- the name of the attributenull
otherwisedefault java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getAttributes()