Class DataEncryptionParameters

    • Field Detail

      • encryptionCredential

        private Credential encryptionCredential
        Credential used to encrypt.
      • algorithm

        private String algorithm
        XML Encryption algorithm URI used to encrypt.
      • keyInfoGenerator

        private KeyInfoGenerator keyInfoGenerator
        Generator for dynamically generating a KeyInfo instance containing information from the encryption credential.
    • Constructor Detail

      • DataEncryptionParameters

        public DataEncryptionParameters()
        Constructor.
      • DataEncryptionParameters

        public DataEncryptionParameters​(@Nonnull
                                        EncryptionParameters params)
        Convenience constructor which allows copying the relevant data encryption parameters from an instance of EncryptionParameters.
        Parameters:
        params - the encryption parameters instance
    • Method Detail

      • getAlgorithm

        @Nullable
        public String getAlgorithm()
        Gets the XML Encryption algorithm URI used to encrypt.
        Returns:
        the algorithm URI used to encrypt, or null
      • setAlgorithm

        public void setAlgorithm​(@Nullable
                                 String newAlgorithm)
        Sets the XML Encryption algorithm URI used to encrypt.
        Parameters:
        newAlgorithm - the algorithm URI used to encrypt
      • getEncryptionCredential

        @Nullable
        public Credential getEncryptionCredential()
        Gets the credential used to encrypt.
        Returns:
        the credential used to encrypt, or null
      • setEncryptionCredential

        public void setEncryptionCredential​(@Nullable
                                            Credential newEncryptionCredential)
        Sets the credential used to encrypt.
        Parameters:
        newEncryptionCredential - the credential used to encrypt
      • getKeyInfoGenerator

        @Nullable
        public KeyInfoGenerator getKeyInfoGenerator()
        Gets the instance which will be used to generate a KeyInfo object from the encryption credential.
        Returns:
        the generator instance, or null
      • setKeyInfoGenerator

        public void setKeyInfoGenerator​(@Nullable
                                        KeyInfoGenerator newKeyInfoGenerator)
        Sets the instance which will be used to generate a KeyInfo object from the encryption credential.
        Parameters:
        newKeyInfoGenerator - the new generator instance