Package org.apache.wss4j.dom.message
Class Encryptor
java.lang.Object
org.apache.wss4j.dom.message.Encryptor
A class to encrypt references.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoEncryption(org.apache.xml.security.keys.KeyInfo keyInfo, SecretKey secretKey, String encryptionAlgorithm, List<WSEncryptionPart> references, List<Element> attachmentEncryptedDataElements) getDoc()org.apache.xml.security.encryption.SerializerbooleanbooleanvoidsetAttachmentCallbackHandler(CallbackHandler attachmentCallbackHandler) voidsetCallbackLookup(CallbackLookup callbackLookup) voidvoidsetEncryptionSerializer(org.apache.xml.security.encryption.Serializer encryptionSerializer) voidsetExpandXopInclude(boolean expandXopInclude) voidsetIdAllocator(WsuIdAllocator idAllocator) voidsetSecurityHeader(WSSecHeader securityHeader) voidsetStoreBytesInAttachment(boolean storeBytesInAttachment) voidsetWsDocInfo(WSDocInfo wsDocInfo)
-
Constructor Details
-
Encryptor
public Encryptor()
-
-
Method Details
-
doEncryption
public List<String> doEncryption(org.apache.xml.security.keys.KeyInfo keyInfo, SecretKey secretKey, String encryptionAlgorithm, List<WSEncryptionPart> references, List<Element> attachmentEncryptedDataElements) throws WSSecurityException - Throws:
WSSecurityException
-
getDoc
-
setDoc
-
getSecurityHeader
-
setSecurityHeader
-
getIdAllocator
-
setIdAllocator
-
getCallbackLookup
-
setCallbackLookup
-
getAttachmentCallbackHandler
-
setAttachmentCallbackHandler
-
isStoreBytesInAttachment
public boolean isStoreBytesInAttachment() -
setStoreBytesInAttachment
public void setStoreBytesInAttachment(boolean storeBytesInAttachment) -
getEncryptionSerializer
public org.apache.xml.security.encryption.Serializer getEncryptionSerializer() -
setEncryptionSerializer
public void setEncryptionSerializer(org.apache.xml.security.encryption.Serializer encryptionSerializer) -
isExpandXopInclude
public boolean isExpandXopInclude() -
setExpandXopInclude
public void setExpandXopInclude(boolean expandXopInclude) -
getWsDocInfo
-
setWsDocInfo
-