Class DefaultSaml2AuthenticatedPrincipal
java.lang.Object
org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal
- All Implemented Interfaces:
Serializable,AuthenticatedPrincipal,Saml2AuthenticatedPrincipal
public class DefaultSaml2AuthenticatedPrincipal
extends Object
implements Saml2AuthenticatedPrincipal, Serializable
Default implementation of a
Saml2AuthenticatedPrincipal.- Since:
- 5.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the Saml2 token attributesgetName()Returns the name of the authenticatedPrincipal.Get theRelyingPartyRegistrationidentifierinthashCode()voidsetRelyingPartyRegistrationId(String registrationId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
getAttribute, getFirstAttribute
-
Constructor Details
-
DefaultSaml2AuthenticatedPrincipal
-
DefaultSaml2AuthenticatedPrincipal
-
-
Method Details
-
getName
Description copied from interface:AuthenticatedPrincipalReturns the name of the authenticatedPrincipal. Nevernull.- Specified by:
getNamein interfaceAuthenticatedPrincipal- Returns:
- the name of the authenticated
Principal
-
getAttributes
Description copied from interface:Saml2AuthenticatedPrincipalGet the Saml2 token attributes- Specified by:
getAttributesin interfaceSaml2AuthenticatedPrincipal- Returns:
- the Saml2 token attributes
-
getSessionIndexes
- Specified by:
getSessionIndexesin interfaceSaml2AuthenticatedPrincipal
-
getRelyingPartyRegistrationId
Description copied from interface:Saml2AuthenticatedPrincipalGet theRelyingPartyRegistrationidentifier- Specified by:
getRelyingPartyRegistrationIdin interfaceSaml2AuthenticatedPrincipal- Returns:
- the
RelyingPartyRegistrationidentifier
-
setRelyingPartyRegistrationId
-
equals
-
hashCode
public int hashCode()
-