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 SummaryConstructors Constructor Description SIPX509AuthenticationToken(@NonNull String principal, boolean authenticated)Creates a x509 token
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetPrincipal()SIPX509AuthenticationTokenwithAuthenticated(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.SIPAuthenticationTokengetAuthorities, getCredentials, getDetails, getName, isAuthenticated, setAuthenticated
 
- 
 
- 
- 
- 
Constructor Detail- 
SIPX509AuthenticationTokenpublic SIPX509AuthenticationToken(@NonNull @NonNull String principal, boolean authenticated)Creates a x509 token- Parameters:
- principal- the certificate's data as a string
- authenticated- indicates of the token is authenticated or not
 
 
- 
 - 
Method Detail- 
getPrincipalpublic Object getPrincipal() 
 - 
withAuthenticatedpublic SIPX509AuthenticationToken withAuthenticated(boolean authenticated) Description copied from class:SIPAuthenticationTokenReturns a new instance of the same authentication object, but with the specified value for the authenticated field.- Specified by:
- withAuthenticatedin class- SIPAuthenticationToken<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
 
 
- 
 
-