public class SAMLAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
| Constructor and Description |
|---|
SAMLAuthenticationToken(org.opensaml.saml2.core.Response response,
String credentials,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
This constructor can be safely used by any code that wishes to create a
UsernamePasswordAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return false. |
SAMLAuthenticationToken(org.springframework.security.core.userdetails.UserDetails user,
String credentials,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
This constructor should only be used by
AuthenticationManager or AuthenticationProvider
implementations that are satisfied with producing a trusted (i.e. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials() |
Object |
getPrincipal() |
void |
setAuthenticated(boolean isAuthenticated) |
public SAMLAuthenticationToken(org.opensaml.saml2.core.Response response,
String credentials,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
UsernamePasswordAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return false.response - credentials - public SAMLAuthenticationToken(org.springframework.security.core.userdetails.UserDetails user,
String credentials,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
AuthenticationManager or AuthenticationProvider
implementations that are satisfied with producing a trusted (i.e. AbstractAuthenticationToken.isAuthenticated() = true)
authentication token.user - credentials - authorities - public Object getCredentials()
public Object getPrincipal()
public void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationsetAuthenticated in class org.springframework.security.authentication.AbstractAuthenticationTokenIllegalArgumentExceptionCopyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.