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:
  • Constructor Details

    • SIPX509AuthenticationToken

      public 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 Details

    • 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 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