Class ECEncryption

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

        public java.lang.String supportedAlgorithmsMessage()
        Returns:
        message explaining the supported algorithms
      • buildEncrypter

        protected com.nimbusds.jose.JWEEncrypter buildEncrypter()
                                                         throws com.nimbusds.jose.JOSEException
        Description copied from class: AbstractEncryptionConfiguration
        Build the appropriate encrypter.
        Specified by:
        buildEncrypter in class AbstractEncryptionConfiguration
        Returns:
        the appropriate encrypter
        Throws:
        com.nimbusds.jose.JOSEException - could be thrown while building encrypter if configuration is invalid
      • buildEncrypterWithPublicKey

        protected com.nimbusds.jose.JWEEncrypter buildEncrypterWithPublicKey​(@Nonnull
                                                                             java.security.interfaces.ECPublicKey publicKey)
                                                                      throws com.nimbusds.jose.JOSEException
        Instantiates ECDHEncrypter with ECPublicKey.
        Parameters:
        publicKey - Instance of ECPublicKey
        Returns:
        Instance of ECDHEncrypter
        Throws:
        com.nimbusds.jose.JOSEException - if the ECDHEncrypter cannot be intantiated
      • buildDecrypter

        protected com.nimbusds.jose.JWEDecrypter buildDecrypter()
                                                         throws com.nimbusds.jose.JOSEException
        Description copied from class: AbstractEncryptionConfiguration
        Build the appropriate decrypter.
        Specified by:
        buildDecrypter in class AbstractEncryptionConfiguration
        Returns:
        the appropriate decrypter
        Throws:
        com.nimbusds.jose.JOSEException - could be thrown while building decrypter if configuration is invalid