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 of 
SIPAuthenticationProvider.- Author:
- thomas.stieglmaier
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>getName()final booleanfinal 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.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.core.AuthenticationgetPrincipal
- 
Constructor Details- 
SIPAuthenticationTokenpublic SIPAuthenticationToken()
 
- 
- 
Method Details- 
withAuthenticatedReturns 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- Specified by:
- getAuthoritiesin interface- org.springframework.security.core.Authentication
 
- 
getCredentials- Specified by:
- getCredentialsin interface- org.springframework.security.core.Authentication
 
- 
getDetails- Specified by:
- getDetailsin interface- org.springframework.security.core.Authentication
 
- 
isAuthenticatedpublic final boolean isAuthenticated()- Specified by:
- isAuthenticatedin interface- org.springframework.security.core.Authentication
 
- 
getName
- 
setAuthenticated- Specified by:
- setAuthenticatedin interface- org.springframework.security.core.Authentication
- Throws:
- IllegalArgumentException
 
 
-