Class Saml2AssertionAuthentication
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.saml2.provider.service.authentication.Saml2Authentication
org.springframework.security.saml2.provider.service.authentication.Saml2AssertionAuthentication
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
An authentication based off of a SAML 2.0 Assertion
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder ofSaml2AssertionAuthenticationinstancesNested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionSaml2AssertionAuthentication(Object principal, Saml2ResponseAssertionAccessor assertion, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String relyingPartyRegistrationId) protectedSaml2AssertionAuthentication(Saml2ResponseAssertionAccessor assertion, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String relyingPartyRegistrationId) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.springframework.security.saml2.provider.service.authentication.Saml2Authentication
getPrincipal, getSaml2ResponseMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
Saml2AssertionAuthentication
public Saml2AssertionAuthentication(Saml2ResponseAssertionAccessor assertion, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String relyingPartyRegistrationId) -
Saml2AssertionAuthentication
public Saml2AssertionAuthentication(Object principal, Saml2ResponseAssertionAccessor assertion, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String relyingPartyRegistrationId) -
Saml2AssertionAuthentication
-
-
Method Details
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication- Overrides:
getCredentialsin classSaml2Authentication
-
getRelyingPartyRegistrationId
-
toBuilder
-