public class SAMLAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Constructor and Description |
---|
SAMLAuthenticationToken(SAMLMessageContext credentials)
Default constructor initializing the context
|
Modifier and Type | Method and Description |
---|---|
SAMLMessageContext |
getCredentials()
Returns the stored SAML context
|
Object |
getPrincipal()
Always null
|
void |
setAuthenticated(boolean isAuthenticated)
This object can never be authenticated, call with true result in exception.
|
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
public SAMLAuthenticationToken(SAMLMessageContext credentials)
credentials
- SAML context object created after decodingpublic SAMLMessageContext getCredentials()
public Object getPrincipal()
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
setAuthenticated
in class org.springframework.security.authentication.AbstractAuthenticationToken
isAuthenticated
- only false value allowedIllegalArgumentException
- if isAuthenticated is true