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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the Saml2 token attributesgetName()
Returns the name of the authenticatedPrincipal
.Get theRelyingPartyRegistration
identifierint
hashCode()
void
setRelyingPartyRegistrationId
(String registrationId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
getAttribute, getFirstAttribute
-
Constructor Details
-
DefaultSaml2AuthenticatedPrincipal
-
DefaultSaml2AuthenticatedPrincipal
-
-
Method Details
-
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
Description copied from interface:Saml2AuthenticatedPrincipal
Get the Saml2 token attributes- Specified by:
getAttributes
in interfaceSaml2AuthenticatedPrincipal
- Returns:
- the Saml2 token attributes
-
getSessionIndexes
- Specified by:
getSessionIndexes
in interfaceSaml2AuthenticatedPrincipal
-
getRelyingPartyRegistrationId
Description copied from interface:Saml2AuthenticatedPrincipal
Get theRelyingPartyRegistration
identifier- Specified by:
getRelyingPartyRegistrationId
in interfaceSaml2AuthenticatedPrincipal
- Returns:
- the
RelyingPartyRegistration
identifier
-
setRelyingPartyRegistrationId
-
equals
-
hashCode
public int hashCode()
-