Class SIPAuthenticationToken<T extends SIPAuthenticationToken<T>>
- java.lang.Object
-
- de.ikor.sip.foundation.security.authentication.SIPAuthenticationToken<T>
-
- Type Parameters:
T- The class of the implementing token itself
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication
- Direct Known Subclasses:
CompositeAuthenticationToken,SIPBasicAuthAuthenticationToken,SIPX509AuthenticationToken
public abstract class SIPAuthenticationToken<T extends SIPAuthenticationToken<T>> extends Object implements org.springframework.security.core.Authentication
Interface for all auth tokens used in implementations ofSIPAuthenticationProvider.- Author:
- thomas.stieglmaier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SIPAuthenticationToken()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>getAuthorities()ObjectgetCredentials()ObjectgetDetails()StringgetName()booleanisAuthenticated()voidsetAuthenticated(boolean isAuthenticated)abstract TwithAuthenticated(boolean authenticated)Returns a new instance of the same authentication object, but with the specified value for the authenticated field.
-
-
-
Method Detail
-
withAuthenticated
public abstract T withAuthenticated(boolean authenticated)
Returns a new instance of the same authentication object, but with the specified value for the authenticated field.- Parameters:
authenticated- indicates if the authentication object should be authenticated or not- Returns:
- a copy of the caller authentication object with the specific value for authentication set
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.Authentication
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getDetails
public Object getDetails()
- Specified by:
getDetailsin interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public final boolean isAuthenticated()
- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
public final void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Throws:
IllegalArgumentException
-
-