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) |
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() |
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) |
public DefaultSamlAuthentication(boolean authenticated, Assertion assertion, java.lang.String assertingEntityId, java.lang.String holdingEntityId)
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 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 Assertion getAssertion()
SamlAuthentication
getAssertion
in interface SamlAuthentication
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 java.lang.String getName()
getName
in interface java.security.Principal
public void setAuthenticated(boolean isAuthenticated) throws java.lang.IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
java.lang.IllegalArgumentException
protected void setAssertion(Assertion assertion)
protected void setAssertingEntityId(java.lang.String assertingEntityId)
protected void setHoldingEntityId(java.lang.String holdingEntityId)