Class ClientAssertion

java.lang.Object
io.jans.as.server.model.token.ClientAssertion

public class ClientAssertion extends Object
Version:
February 12, 2019
Author:
Javier Rojas Blum, Yuriy Z
  • Constructor Details

    • ClientAssertion

      public ClientAssertion(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider, String clientId, io.jans.as.model.token.ClientAssertionType clientAssertionType, String encodedAssertion)
  • Method Details

    • getSubjectIdentifier

      public String getSubjectIdentifier() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • getJti

      public String getJti() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • getClientSecret

      public String getClientSecret() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • assertVerified

      public void assertVerified() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifyClientAssertionType

      public void verifyClientAssertionType() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • initAndVerify

      public void initAndVerify() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifyEncodedAssertion

      public void verifyEncodedAssertion() throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifyAudience

      public void verifyAudience(List<String> audience) throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifyExpiration

      public void verifyExpiration(Date expirationTime) throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifyClient

      public io.jans.util.Pair<io.jans.as.common.model.registration.Client,ClientService> verifyClient(String subject) throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifyAuthenticationMethod

      public void verifyAuthenticationMethod(io.jans.as.common.model.registration.Client client) throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException
    • verifySignature

      public void verifySignature(ClientService clientService, io.jans.as.common.model.registration.Client client) throws io.jans.util.security.StringEncrypter.EncryptionException, io.jans.as.model.exception.InvalidJwtException, io.jans.as.model.exception.CryptoProviderException
      Throws:
      io.jans.util.security.StringEncrypter.EncryptionException
      io.jans.as.model.exception.InvalidJwtException
      io.jans.as.model.exception.CryptoProviderException
    • verifySignatureAlgorithm

      public void verifySignatureAlgorithm(io.jans.as.common.model.registration.Client client) throws io.jans.as.model.exception.InvalidJwtException
      Throws:
      io.jans.as.model.exception.InvalidJwtException