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,Authentication,CredentialsContainer
An authentication based off of a SAML 2.0 Assertion
- Since:
- 7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaml2AssertionAuthentication(Object principal, Saml2ResponseAssertionAccessor assertion, Collection<? extends GrantedAuthority> authorities, String relyingPartyRegistrationId) Saml2AssertionAuthentication(Saml2ResponseAssertionAccessor assertion, Collection<? extends GrantedAuthority> authorities, String relyingPartyRegistrationId) -
Method Summary
Modifier and TypeMethodDescriptionThe credentials that prove the principal is correct.Methods 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 GrantedAuthority> authorities, String relyingPartyRegistrationId) -
Saml2AssertionAuthentication
public Saml2AssertionAuthentication(Object principal, Saml2ResponseAssertionAccessor assertion, Collection<? extends GrantedAuthority> authorities, String relyingPartyRegistrationId)
-
-
Method Details
-
getCredentials
Description copied from interface:AuthenticationThe credentials that prove the principal is correct. This is usually a password, but could be anything relevant to theAuthenticationManager. Callers are expected to populate the credentials.- Specified by:
getCredentialsin interfaceAuthentication- Overrides:
getCredentialsin classSaml2Authentication- Returns:
- the credentials that prove the identity of the
Principal
-
getRelyingPartyRegistrationId
-