Class DefaultSaml2AuthenticatedPrincipal
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal
-
- All Implemented Interfaces:
java.io.Serializable
,AuthenticatedPrincipal
,Saml2AuthenticatedPrincipal
public class DefaultSaml2AuthenticatedPrincipal extends java.lang.Object implements Saml2AuthenticatedPrincipal, java.io.Serializable
Default implementation of aSaml2AuthenticatedPrincipal
.- Since:
- 5.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultSaml2AuthenticatedPrincipal(java.lang.String name, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getAttributes()
Get the Saml2 token attributesjava.lang.String
getName()
Returns the name of the authenticatedPrincipal
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
getAttribute, getFirstAttribute
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AuthenticatedPrincipal
Returns the name of the authenticatedPrincipal
. Nevernull
.- Specified by:
getName
in interfaceAuthenticatedPrincipal
- Returns:
- the name of the authenticated
Principal
-
getAttributes
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getAttributes()
Description copied from interface:Saml2AuthenticatedPrincipal
Get the Saml2 token attributes- Specified by:
getAttributes
in interfaceSaml2AuthenticatedPrincipal
- Returns:
- the Saml2 token attributes
-
-