Class XMLCipher.Factory

  • Enclosing class:
    XMLCipher

    private class XMLCipher.Factory
    extends java.lang.Object
    • Constructor Detail

      • Factory

        private Factory()
    • Method Detail

      • newAgreementMethod

        AgreementMethod newAgreementMethod​(java.lang.String algorithm)
        Parameters:
        algorithm -
        Returns:
        a new AgreementMethod
      • newCipherData

        CipherData newCipherData​(int type)
        Parameters:
        type -
        Returns:
        a new CipherData
      • newCipherReference

        CipherReference newCipherReference​(java.lang.String uri)
        Parameters:
        uri -
        Returns:
        a new CipherReference
      • newCipherValue

        CipherValue newCipherValue​(java.lang.String value)
        Parameters:
        value -
        Returns:
        a new CipherValue
      • newEncryptedData

        EncryptedData newEncryptedData​(CipherData data)
        Parameters:
        data -
        Returns:
        a new EncryptedData
      • newEncryptedKey

        EncryptedKey newEncryptedKey​(CipherData data)
        Parameters:
        data -
        Returns:
        a new EncryptedKey
      • newEncryptionMethod

        EncryptionMethod newEncryptionMethod​(java.lang.String algorithm)
        Parameters:
        algorithm -
        Returns:
        a new EncryptionMethod
      • newEncryptionProperties

        EncryptionProperties newEncryptionProperties()
        Returns:
        a new EncryptionProperties
      • newEncryptionProperty

        EncryptionProperty newEncryptionProperty()
        Returns:
        a new EncryptionProperty
      • newReferenceList

        ReferenceList newReferenceList​(int type)
        Parameters:
        type - ReferenceList.DATA_REFERENCE or ReferenceList.KEY_REFERENCE
        Returns:
        a new ReferenceList
      • newTransforms

        Transforms newTransforms()
        Returns:
        a new Transforms
      • newTransforms

        Transforms newTransforms​(org.w3c.dom.Document doc)
        Parameters:
        doc -
        Returns:
        a new Transforms
      • newCipherValue

        CipherValue newCipherValue​(org.w3c.dom.Element element)
        Parameters:
        element -
        Returns:
        a new CipherValue
      • newEncryptionMethod

        EncryptionMethod newEncryptionMethod​(org.w3c.dom.Element element)
        Parameters:
        element -
        Returns:
        a new EncryptionMethod
      • newEncryptionProperties

        EncryptionProperties newEncryptionProperties​(org.w3c.dom.Element element)
        Parameters:
        element -
        Returns:
        a new EncryptionProperties
      • newEncryptionProperty

        EncryptionProperty newEncryptionProperty​(org.w3c.dom.Element element)
        Parameters:
        element -
        Returns:
        a new EncryptionProperty
      • newReferenceList

        ReferenceList newReferenceList​(org.w3c.dom.Element element)
        Parameters:
        element -
        Returns:
        a new ReferenceList
      • toElement

        org.w3c.dom.Element toElement​(EncryptedData encryptedData)
        Parameters:
        encryptedData -
        Returns:
        the XML Element form of that EncryptedData
      • toElement

        org.w3c.dom.Element toElement​(EncryptedKey encryptedKey)
        Parameters:
        encryptedKey -
        Returns:
        the XML Element form of that EncryptedKey
      • toElement

        org.w3c.dom.Element toElement​(ReferenceList referenceList)
        Parameters:
        referenceList -
        Returns:
        the XML Element form of that ReferenceList