Class SIPX509AuthenticationToken
java.lang.Object
de.ikor.sip.foundation.security.authentication.SIPAuthenticationToken<SIPX509AuthenticationToken>
de.ikor.sip.foundation.security.authentication.x509.SIPX509AuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
Container for the certificates dn data, containing all relevant information for validation later
on
- Author:
- thomas.stieglmaier
- See Also:
-
Constructor Summary
ConstructorDescriptionSIPX509AuthenticationToken
(@NonNull String principal, boolean authenticated) Creates a x509 token -
Method Summary
Modifier and TypeMethodDescriptionwithAuthenticated
(boolean authenticated) Returns a new instance of the same authentication object, but with the specified value for the authenticated field.Methods inherited from class de.ikor.sip.foundation.security.authentication.SIPAuthenticationToken
getAuthorities, getCredentials, getDetails, getName, isAuthenticated, setAuthenticated
-
Constructor Details
-
SIPX509AuthenticationToken
Creates a x509 token- Parameters:
principal
- the certificate's data as a stringauthenticated
- indicates of the token is authenticated or not
-
-
Method Details
-
getPrincipal
-
withAuthenticated
Description copied from class:SIPAuthenticationToken
Returns a new instance of the same authentication object, but with the specified value for the authenticated field.- Specified by:
withAuthenticated
in classSIPAuthenticationToken<SIPX509AuthenticationToken>
- 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
-