public class DefaultSamlAuthentication extends java.lang.Object implements SamlAuthentication
Constructor and Description |
---|
DefaultSamlAuthentication(boolean authenticated,
Assertion assertion,
java.lang.String assertingEntityId,
java.lang.String holdingEntityId,
java.lang.String relayState) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAssertingEntityId()
Returns the entity id of the identity provider that issued the assertion
|
Assertion |
getAssertion()
returns the assertion object that was used to create this authentication object
|
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
java.lang.Object |
getCredentials() |
java.lang.Object |
getDetails() |
java.lang.String |
getHoldingEntityId()
Returns the entity id of the service provider that received the assertion
|
java.lang.String |
getName() |
java.lang.Object |
getPrincipal() |
java.lang.String |
getRelayState()
If the POST or REDIRECT contained a RelayState parameter this will be the value of it
|
SubjectPrincipal<? extends SubjectPrincipal> |
getSamlPrincipal()
Returns the principal object as it was received from the assertion
|
boolean |
isAuthenticated() |
protected void |
setAssertingEntityId(java.lang.String assertingEntityId) |
protected void |
setAssertion(Assertion assertion) |
void |
setAuthenticated(boolean isAuthenticated) |
protected void |
setHoldingEntityId(java.lang.String holdingEntityId) |
void |
setRelayState(java.lang.String relayState) |
public DefaultSamlAuthentication(boolean authenticated, Assertion assertion, java.lang.String assertingEntityId, java.lang.String holdingEntityId, java.lang.String relayState)
public java.lang.String getAssertingEntityId()
SamlAuthentication
getAssertingEntityId
in interface SamlAuthentication
public java.lang.String getHoldingEntityId()
SamlAuthentication
getHoldingEntityId
in interface SamlAuthentication
public SubjectPrincipal<? extends SubjectPrincipal> getSamlPrincipal()
SamlAuthentication
getSamlPrincipal
in interface SamlAuthentication
public Assertion getAssertion()
SamlAuthentication
getAssertion
in interface SamlAuthentication
protected void setAssertion(Assertion assertion)
public java.lang.String getRelayState()
SamlAuthentication
getRelayState
in interface SamlAuthentication
public void setRelayState(java.lang.String relayState)
protected void setHoldingEntityId(java.lang.String holdingEntityId)
protected void setAssertingEntityId(java.lang.String assertingEntityId)
public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.Authentication
public java.lang.Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public java.lang.Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public java.lang.Object getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean isAuthenticated) throws java.lang.IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
java.lang.IllegalArgumentException
public java.lang.String getName()
getName
in interface java.security.Principal