public class DefaultSpringSecurityAuthentication extends DefaultParameterSet implements SpringSecurityAuthentication
SpringSecurityAuthentication implementation.DefaultParameterSet.AbstractBuilder<S extends ParameterSet,I extends DefaultParameterSet,B extends ParameterSet.Builder<S>>, DefaultParameterSet.DefaultBuilderAuthentication.AuthenticationListener, Authentication.AuthenticationNotifier, Authentication.BuilderAUTHENTICATION_DETAILS_KEY| Constructor and Description |
|---|
DefaultSpringSecurityAuthentication(org.springframework.security.core.Authentication authentication)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
Collection<Permission> |
getPermissions()
Set of
Permissions granted to principal with this Authentication |
Object |
getPrincipal() |
Optional<String> |
getScheme()
Get the authentication scheme with which this authentication was produced.
|
int |
hashCode() |
boolean |
isAuthenticated() |
boolean |
isRoot()
If this method returns
true, this Authentication is considered a root principal, for
which permission checking is always skipped, assuming that any permission is granted to this Authentication. |
void |
setAuthenticated(boolean isAuthenticated) |
String |
toString() |
addParameter, forEachParameter, getParameter, getParameter, getParameterIf, hasNotNullParameter, hasParameter, hasParameters, hasParameterValue, removeParametercreatebuilderbuilder, empty, forEachParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameterIf, getParameterIf, hasNotNullParameter, hasNotNullParameter, hasParameter, hasParameter, hasParameters, hasParameterValue, hasParameterValuepublic DefaultSpringSecurityAuthentication(org.springframework.security.core.Authentication authentication)
authentication - The Spring Security Authentication (not null)public Optional<String> getScheme()
Authenticationpublic Collection<Permission> getPermissions()
AuthenticationPermissions granted to principal with this Authenticationpublic boolean isRoot()
Authenticationtrue, this Authentication is considered a root principal, for
which permission checking is always skipped, assuming that any permission is granted to this Authentication.true if this Authentication is considered a root principalpublic Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.Authenticationpublic Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationIllegalArgumentExceptionpublic int hashCode()
public boolean equals(Object obj)
public String toString()
toString in interface PrincipaltoString in class DefaultParameterSetCopyright © 2019 The Holon Platform. All rights reserved.