public class WindowsAuthenticationToken
extends java.lang.Object
implements org.springframework.security.core.Authentication
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.security.core.GrantedAuthority |
DEFAULT_GRANTED_AUTHORITY
The
GrantedAuthority that will be added to every WindowsAuthenticationToken, unless another (or null) is
specified. |
static GrantedAuthorityFactory |
DEFAULT_GRANTED_AUTHORITY_FACTORY
The
GrantedAuthorityFactory that is used by default if a custom one is not specified. |
| Constructor and Description |
|---|
WindowsAuthenticationToken(waffle.servlet.WindowsPrincipal identity)
Convenience constructor that calls
WindowsAuthenticationToken(WindowsPrincipal, GrantedAuthorityFactory, GrantedAuthority) with:
the given identity,
the DEFAULT_GRANTED_AUTHORITY_FACTORY
the DEFAULT_GRANTED_AUTHORITY
|
WindowsAuthenticationToken(waffle.servlet.WindowsPrincipal identity,
GrantedAuthorityFactory grantedAuthorityFactory,
org.springframework.security.core.GrantedAuthority defaultGrantedAuthority) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
java.lang.Object |
getCredentials() |
java.lang.Object |
getDetails() |
java.lang.String |
getName() |
java.lang.Object |
getPrincipal() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean authenticated) |
public static final GrantedAuthorityFactory DEFAULT_GRANTED_AUTHORITY_FACTORY
GrantedAuthorityFactory that is used by default if a custom one is not specified. This default
GrantedAuthorityFactory is a FqnGrantedAuthorityFactory with prefix "ROLE_" and will
convert the fqn to uppercasepublic static final org.springframework.security.core.GrantedAuthority DEFAULT_GRANTED_AUTHORITY
GrantedAuthority that will be added to every WindowsAuthenticationToken, unless another (or null) is
specified.public WindowsAuthenticationToken(waffle.servlet.WindowsPrincipal identity)
WindowsAuthenticationToken(WindowsPrincipal, GrantedAuthorityFactory, GrantedAuthority) with:
DEFAULT_GRANTED_AUTHORITY_FACTORYDEFAULT_GRANTED_AUTHORITYpublic WindowsAuthenticationToken(waffle.servlet.WindowsPrincipal identity,
GrantedAuthorityFactory grantedAuthorityFactory,
org.springframework.security.core.GrantedAuthority defaultGrantedAuthority)
identity - The WindowsPrincipal for which this token exists.grantedAuthorityFactory - used to construct GrantedAuthoritys for each of the groups to which the
WindowsPrincipal belongsdefaultGrantedAuthority - if not null, this GrantedAuthority will always be added to the granted authorities listpublic java.util.Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.Authenticationpublic java.lang.Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic java.lang.Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic java.lang.Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean authenticated)
throws java.lang.IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.Authenticationjava.lang.IllegalArgumentExceptionpublic java.lang.String getName()
getName in interface java.security.Principal