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
public class SIPX509AuthenticationToken extends SIPAuthenticationToken<SIPX509AuthenticationToken>
Container for the certificates dn data, containing all relevant information for validation later on- Author:
- thomas.stieglmaier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SIPX509AuthenticationToken(@NonNull String principal, boolean authenticated)
Creates a x509 token
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getPrincipal()
SIPX509AuthenticationToken
withAuthenticated(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 Detail
-
SIPX509AuthenticationToken
public SIPX509AuthenticationToken(@NonNull @NonNull String principal, boolean authenticated)
Creates a x509 token- Parameters:
principal
- the certificate's data as a stringauthenticated
- indicates of the token is authenticated or not
-
-
Method Detail
-
getPrincipal
public Object getPrincipal()
-
withAuthenticated
public SIPX509AuthenticationToken withAuthenticated(boolean authenticated)
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
-
-