Class KeyEncryptionParameters

    • Field Detail

      • recipient

        private String recipient
        Recipient of the key.
      • rsaOAEPParameters

        private RSAOAEPParameters rsaOAEPParameters
        RSA OAEP parameters.
    • Constructor Detail

      • KeyEncryptionParameters

        public KeyEncryptionParameters()
        Constructor.
      • KeyEncryptionParameters

        public KeyEncryptionParameters​(EncryptionParameters params,
                                       String recipientId)
        Convenience constructor which allows copying the relevant key encryption parameters from an instance of EncryptionParameters.
        Parameters:
        params - the encryption parameters instance
        recipientId - the recipient of the key
    • Method Detail

      • getRecipient

        @Nullable
        public String getRecipient()
        Gets the recipient of the key. When generating an EncryptedKey, this will be used as the value of the Recipient attribute.
        Returns:
        the recipient of the key, or null
      • setRecipient

        public void setRecipient​(@Nullable
                                 String newRecipient)
        Sets the recipient of the key. When generating an EncryptedKey, this will be used as the value of the Recipient attribute.
        Parameters:
        newRecipient - the recipient of the key
      • setRSAOAEPParameters

        public void setRSAOAEPParameters​(@Nullable
                                         RSAOAEPParameters params)
        Set the instance of RSAOAEPParameters.
        Parameters:
        params - the new parameters instance