Class SecurityRealmAuthentication
java.lang.Object
net.coder966.spring.multisecurityrealms.authentication.SecurityRealmAuthentication
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication
public class SecurityRealmAuthentication
extends Object
implements org.springframework.security.core.Authentication
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityRealmAuthentication(String name, Set<? extends org.springframework.security.core.GrantedAuthority> authorities) USe this when the user is fully authenticated.SecurityRealmAuthentication(String name, Set<? extends org.springframework.security.core.GrantedAuthority> authorities, String nextAuthenticationStep) USe this when the user is not fully authenticated and needs to proceed to the another auth step. -
Method Summary
Modifier and TypeMethodDescriptionbooleanSet<? extends org.springframework.security.core.GrantedAuthority>getName()inthashCode()booleanvoidsetAuthenticated(boolean isAuthenticated)
-
Constructor Details
-
SecurityRealmAuthentication
public SecurityRealmAuthentication(String name, Set<? extends org.springframework.security.core.GrantedAuthority> authorities) USe this when the user is fully authenticated. -
SecurityRealmAuthentication
public SecurityRealmAuthentication(String name, Set<? extends org.springframework.security.core.GrantedAuthority> authorities, String nextAuthenticationStep) USe this when the user is not fully authenticated and needs to proceed to the another auth step.
-
-
Method Details
-
getAuthorities
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.Authentication
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetailsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Throws:
IllegalArgumentException
-
getName
-
equals
-
hashCode
public int hashCode()
-