Class SignedJwtSignatureConfiguration

java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.jwt.config.signature.AbstractSignatureConfiguration
com.eka.middleware.auth.manager.SignedJwtSignatureConfiguration
All Implemented Interfaces:
org.pac4j.jwt.config.signature.SignatureConfiguration

public class SignedJwtSignatureConfiguration extends org.pac4j.jwt.config.signature.AbstractSignatureConfiguration
  • Constructor Details

    • SignedJwtSignatureConfiguration

      public SignedJwtSignatureConfiguration()
    • SignedJwtSignatureConfiguration

      public SignedJwtSignatureConfiguration(String secret)
    • SignedJwtSignatureConfiguration

      public SignedJwtSignatureConfiguration(byte[] secret)
    • SignedJwtSignatureConfiguration

      public SignedJwtSignatureConfiguration(String secret, com.nimbusds.jose.JWSAlgorithm algorithm)
    • SignedJwtSignatureConfiguration

      public SignedJwtSignatureConfiguration(byte[] secret, com.nimbusds.jose.JWSAlgorithm algorithm)
  • Method Details

    • supports

      public boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm)
    • sign

      public com.nimbusds.jwt.SignedJWT sign(com.nimbusds.jwt.JWTClaimsSet claims)
    • verify

      public boolean verify(com.nimbusds.jwt.SignedJWT jwt) throws com.nimbusds.jose.JOSEException
      Throws:
      com.nimbusds.jose.JOSEException
    • getSecret

      public String getSecret()
    • setSecret

      public void setSecret(String secret)
    • getSecretBytes

      public byte[] getSecretBytes()
    • setSecretBytes

      public void setSecretBytes(byte[] secretBytes)
    • getSecretBase64

      public String getSecretBase64()
    • setSecretBase64

      public void setSecretBase64(String secret)
    • toString

      public String toString()
      Overrides:
      toString in class Object