Class RSAEncryptionConfiguration

    • Constructor Detail

      • RSAEncryptionConfiguration

        public RSAEncryptionConfiguration()
      • RSAEncryptionConfiguration

        public RSAEncryptionConfiguration​(KeyPair keyPair)
      • RSAEncryptionConfiguration

        public RSAEncryptionConfiguration​(KeyPair keyPair,
                                          com.nimbusds.jose.JWEAlgorithm algorithm,
                                          com.nimbusds.jose.EncryptionMethod method)
    • Method Detail

      • supports

        public boolean supports​(com.nimbusds.jose.JWEAlgorithm algorithm,
                                com.nimbusds.jose.EncryptionMethod method)
        Description copied from interface: EncryptionConfiguration
        Whether this encryption configuration supports this algorithm and encryption method.
        Parameters:
        algorithm - the encryption algorithm
        method - the encryption method
        Returns:
        whether this encryption configuration supports this algorithm and encryption method
      • setKeyPair

        public void setKeyPair​(KeyPair keyPair)
      • setPublicKey

        public void setPublicKey​(RSAPublicKey publicKey)
      • setPrivateKey

        public void setPrivateKey​(RSAPrivateKey privateKey)
      • setKeysFromJwk

        public void setKeysFromJwk​(String json)