Class XMLCipher.Factory.EncryptionMethodImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      EncryptionMethodImpl​(java.lang.String algorithm)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEncryptionMethodInformation​(org.w3c.dom.Element info)
      Adds encryption method information.
      java.lang.String getAlgorithm()
      Returns the algorithm applied to the cipher data.
      java.lang.String getDigestAlgorithm()
      Get the Digest Algorithm to use
      java.util.Iterator<org.w3c.dom.Element> getEncryptionMethodInformation()
      Returns an iterator over all the additional elements contained in the EncryptionMethod.
      int getKeySize()
      Returns the key size of the key of the algorithm applied to the cipher data.
      java.lang.String getMGFAlgorithm()
      Get the MGF Algorithm to use
      byte[] getOAEPparams()
      Returns the OAEP parameters of the algorithm applied applied to the cipher data.
      void removeEncryptionMethodInformation​(org.w3c.dom.Element info)
      Removes encryption method information.
      void setDigestAlgorithm​(java.lang.String digestAlgorithm)
      Set the Digest Algorithm to use
      void setKeySize​(int size)
      Sets the size of the key of the algorithm applied to the cipher data.
      void setMGFAlgorithm​(java.lang.String mgfAlgorithm)
      Set the MGF Algorithm to use
      void setOAEPparams​(byte[] params)
      Sets the OAEP parameters.
      (package private) org.w3c.dom.Element toElement()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • algorithm

        private java.lang.String algorithm
      • keySize

        private int keySize
      • oaepParams

        private byte[] oaepParams
      • encryptionMethodInformation

        private java.util.List<org.w3c.dom.Element> encryptionMethodInformation
      • digestAlgorithm

        private java.lang.String digestAlgorithm
      • mgfAlgorithm

        private java.lang.String mgfAlgorithm
    • Constructor Detail

      • EncryptionMethodImpl

        public EncryptionMethodImpl​(java.lang.String algorithm)
        Constructor.
        Parameters:
        algorithm -
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Returns the algorithm applied to the cipher data.
        Specified by:
        getAlgorithm in interface EncryptionMethod
        Returns:
        the encryption algorithm.
      • getKeySize

        public int getKeySize()
        Returns the key size of the key of the algorithm applied to the cipher data.
        Specified by:
        getKeySize in interface EncryptionMethod
        Returns:
        the key size.
      • setKeySize

        public void setKeySize​(int size)
        Sets the size of the key of the algorithm applied to the cipher data.
        Specified by:
        setKeySize in interface EncryptionMethod
        Parameters:
        size - the key size.
      • getOAEPparams

        public byte[] getOAEPparams()
        Returns the OAEP parameters of the algorithm applied applied to the cipher data.
        Specified by:
        getOAEPparams in interface EncryptionMethod
        Returns:
        the OAEP parameters.
      • setOAEPparams

        public void setOAEPparams​(byte[] params)
        Sets the OAEP parameters.
        Specified by:
        setOAEPparams in interface EncryptionMethod
        Parameters:
        params - the OAEP parameters.
      • setDigestAlgorithm

        public void setDigestAlgorithm​(java.lang.String digestAlgorithm)
        Set the Digest Algorithm to use
        Specified by:
        setDigestAlgorithm in interface EncryptionMethod
        Parameters:
        digestAlgorithm - the Digest Algorithm to use
      • getDigestAlgorithm

        public java.lang.String getDigestAlgorithm()
        Get the Digest Algorithm to use
        Specified by:
        getDigestAlgorithm in interface EncryptionMethod
        Returns:
        the Digest Algorithm to use
      • setMGFAlgorithm

        public void setMGFAlgorithm​(java.lang.String mgfAlgorithm)
        Set the MGF Algorithm to use
        Specified by:
        setMGFAlgorithm in interface EncryptionMethod
        Parameters:
        mgfAlgorithm - the MGF Algorithm to use
      • getMGFAlgorithm

        public java.lang.String getMGFAlgorithm()
        Get the MGF Algorithm to use
        Specified by:
        getMGFAlgorithm in interface EncryptionMethod
        Returns:
        the MGF Algorithm to use
      • getEncryptionMethodInformation

        public java.util.Iterator<org.w3c.dom.Element> getEncryptionMethodInformation()
        Returns an iterator over all the additional elements contained in the EncryptionMethod.
        Specified by:
        getEncryptionMethodInformation in interface EncryptionMethod
        Returns:
        an Iterator over all the additional information about the EncryptionMethod.
      • addEncryptionMethodInformation

        public void addEncryptionMethodInformation​(org.w3c.dom.Element info)
        Adds encryption method information.
        Specified by:
        addEncryptionMethodInformation in interface EncryptionMethod
        Parameters:
        info - additional encryption method information.
      • removeEncryptionMethodInformation

        public void removeEncryptionMethodInformation​(org.w3c.dom.Element info)
        Removes encryption method information.
        Specified by:
        removeEncryptionMethodInformation in interface EncryptionMethod
        Parameters:
        info - the information to remove from the EncryptionMethod.
      • toElement

        org.w3c.dom.Element toElement()