Class SecurityRealmAuthentication<T>

java.lang.Object
net.coder966.spring.multisecurityrealms.model.SecurityRealmAuthentication<T>
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication

public class SecurityRealmAuthentication<T> extends Object implements org.springframework.security.core.Authentication
See Also:
  • Constructor Details

    • SecurityRealmAuthentication

      public SecurityRealmAuthentication(T principal, String name, Set<org.springframework.security.core.authority.SimpleGrantedAuthority> authorities)
      USe this when the user is fully authenticated.
    • SecurityRealmAuthentication

      public SecurityRealmAuthentication(T principal, String name, Set<org.springframework.security.core.authority.SimpleGrantedAuthority> authorities, String nextAuthStep)
      USe this when the user is not fully authenticated and needs to proceed to the another auth step.
  • Method Details

    • getAuthorities

      public Set<org.springframework.security.core.authority.SimpleGrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.Authentication
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getDetails

      public Object getDetails()
      Specified by:
      getDetails in interface org.springframework.security.core.Authentication
    • getPrincipal

      public T getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
      Throws:
      IllegalArgumentException
    • getName

      public String getName()
      Specified by:
      getName in interface Principal