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