Class SimulatedAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
se.swedenconnect.spring.saml.idp.demo.authn.SimulatedAuthenticationToken
- All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer
public class SimulatedAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
An
Authentication token for our simulated authentication process.- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication
org.springframework.security.core.Authentication.Builder<B> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
Constructor Details
-
SimulatedAuthenticationToken
Constructor.- Parameters:
user- the simulated user (i.e., the user that was authenticated)
-
-
Method Details
-
getCredentials
Returnsnull. -
getPrincipal
Returns theSimulatedUser.
-