Class JwtTokenHandlerConfig

    • Constructor Detail

      • JwtTokenHandlerConfig

        public JwtTokenHandlerConfig()
    • Method Detail

      • getKeyPairAlgorithm

        public String getKeyPairAlgorithm()
        Gets the key pair algorithm.
        Returns:
        the key pair algorithm
      • getKeyPairSize

        public int getKeyPairSize()
        Gets the key pair size.
        Returns:
        the key pair size
      • getJweAlgorithm

        public JweAlgorithm getJweAlgorithm()
        Gets the jwe algorithm.
        Returns:
        the jwe algorithm
      • getEncryptionMethod

        public EncryptionMethod getEncryptionMethod()
        Gets the encryption method.
        Returns:
        the encryption method
      • getJwsAlgorithm

        public JwsAlgorithm getJwsAlgorithm()
        Gets the jws algorithm.
        Returns:
        the jws algorithm
      • getTokenLifeTimeInSeconds

        public long getTokenLifeTimeInSeconds()
        Gets the token life time.
        Returns:
        the token life time in seconds
      • setKeyPairAlgorithm

        public JwtTokenHandlerConfig setKeyPairAlgorithm​(String keyPairAlgorithm)
        Set the key pair algorithm.
        Parameters:
        keyPairAlgorithm - the key pair algorithm
        Returns:
        this config instance
      • setKeyPairSize

        public JwtTokenHandlerConfig setKeyPairSize​(int keyPairSize)
        Set the key pair size..
        Parameters:
        keyPairSize - the key pair size
        Returns:
        this config instance
      • setJweAlgorithm

        public JwtTokenHandlerConfig setJweAlgorithm​(JweAlgorithm jweAlgorithm)
        Set the Jwe algorithm.
        Parameters:
        jweAlgorithm - the JweAlgorithm
        Returns:
        this config instance
      • setEncryptionMethod

        public JwtTokenHandlerConfig setEncryptionMethod​(EncryptionMethod encryptionMethod)
        Set the encryption method.
        Parameters:
        encryptionMethod - the encrpytion method
        Returns:
        this config instance
      • setJwsAlgorithm

        public JwtTokenHandlerConfig setJwsAlgorithm​(JwsAlgorithm jwsAlgorithm)
        Set the Jws algorithm.
        Parameters:
        jwsAlgorithm - the JwsAlgorithm
        Returns:
        this config instance
      • setTokenLifeTimeInSeconds

        public JwtTokenHandlerConfig setTokenLifeTimeInSeconds​(long tokenLifeTimeInSeconds)
        Set the token life (seconds).
        Parameters:
        tokenLifeTimeInSeconds - the token life
        Returns:
        this config instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object