Interface Saml2AuthenticatedPrincipal
-
- All Superinterfaces:
org.springframework.security.core.AuthenticatedPrincipal
- All Known Implementing Classes:
DefaultSaml2AuthenticatedPrincipal
public interface Saml2AuthenticatedPrincipal extends org.springframework.security.core.AuthenticatedPrincipalSaml2 representation of anAuthenticatedPrincipal.- Since:
- 5.2.2
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <A> java.util.List<A>getAttribute(java.lang.String name)Get the Saml2 token attribute by namedefault java.util.Map<java.lang.String,java.util.List<java.lang.Object>>getAttributes()Get the Saml2 token attributesdefault <A> AgetFirstAttribute(java.lang.String name)Get the first value of Saml2 token attribute by namedefault java.lang.StringgetRelyingPartyRegistrationId()Get theRelyingPartyRegistrationidentifierdefault java.util.List<java.lang.String>getSessionIndexes()
-
-
-
Method Detail
-
getFirstAttribute
@Nullable default <A> A getFirstAttribute(java.lang.String name)
Get the first value of Saml2 token attribute by name- Type Parameters:
A- the type of the attribute- Parameters:
name- the name of the attribute- Returns:
- the first attribute value or
nullotherwise - Since:
- 5.4
-
getAttribute
@Nullable default <A> java.util.List<A> getAttribute(java.lang.String name)
Get the Saml2 token attribute by name- Type Parameters:
A- the type of the attribute- Parameters:
name- the name of the attribute- Returns:
- the attribute or
nullotherwise - Since:
- 5.4
-
getAttributes
default java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getAttributes()
Get the Saml2 token attributes- Returns:
- the Saml2 token attributes
- Since:
- 5.4
-
getRelyingPartyRegistrationId
default java.lang.String getRelyingPartyRegistrationId()
Get theRelyingPartyRegistrationidentifier- Returns:
- the
RelyingPartyRegistrationidentifier - Since:
- 5.6
-
getSessionIndexes
default java.util.List<java.lang.String> getSessionIndexes()
-
-