Class CompositeAuthenticationToken
java.lang.Object
de.ikor.sip.foundation.security.authentication.SIPAuthenticationToken<CompositeAuthenticationToken>
de.ikor.sip.foundation.security.authentication.CompositeAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
public class CompositeAuthenticationToken
extends SIPAuthenticationToken<CompositeAuthenticationToken>
Default Token set in the security context when using the sip authentication filter. It contains
tokens of all responsible sip authentication providers, in case this needs to be inspected in a
later part of the filter chain or e.g. a rest controller.
- Author:
- thomas.stieglmaier
- See Also:
-
Constructor Summary
ConstructorDescriptionCompositeAuthenticationToken
(List<SIPAuthenticationToken<?>> authTokens) Creates a composite authentication token, consisting of other sip auth tokens, and an aggregated isAuthenticated setting -
Method Summary
Modifier and TypeMethodDescriptionwithAuthenticated
(boolean authenticated) For composite auth tokens this method does nothing, its isAuthenticated state is always indicated by the contained auth tokens.Methods inherited from class de.ikor.sip.foundation.security.authentication.SIPAuthenticationToken
getAuthorities, getCredentials, getDetails, getName, isAuthenticated, setAuthenticated
-
Constructor Details
-
CompositeAuthenticationToken
Creates a composite authentication token, consisting of other sip auth tokens, and an aggregated isAuthenticated setting- Parameters:
authTokens
- the auth tokens to combine
-
-
Method Details
-
getPrincipal
-
withAuthenticated
For composite auth tokens this method does nothing, its isAuthenticated state is always indicated by the contained auth tokens.- Specified by:
withAuthenticated
in classSIPAuthenticationToken<CompositeAuthenticationToken>
- 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
-