Package org.apache.wss4j.dom.message
Class Encryptor
- java.lang.Object
-
- org.apache.wss4j.dom.message.Encryptor
-
public class Encryptor extends Object
A class to encrypt references.
-
-
Constructor Summary
Constructors Constructor Description Encryptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
doEncryption(org.apache.xml.security.keys.KeyInfo keyInfo, SecretKey secretKey, String encryptionAlgorithm, List<WSEncryptionPart> references, List<Element> attachmentEncryptedDataElements)
CallbackHandler
getAttachmentCallbackHandler()
CallbackLookup
getCallbackLookup()
Document
getDoc()
org.apache.xml.security.encryption.Serializer
getEncryptionSerializer()
WsuIdAllocator
getIdAllocator()
WSSecHeader
getSecurityHeader()
WSDocInfo
getWsDocInfo()
boolean
isExpandXopInclude()
boolean
isStoreBytesInAttachment()
void
setAttachmentCallbackHandler(CallbackHandler attachmentCallbackHandler)
void
setCallbackLookup(CallbackLookup callbackLookup)
void
setDoc(Document doc)
void
setEncryptionSerializer(org.apache.xml.security.encryption.Serializer encryptionSerializer)
void
setExpandXopInclude(boolean expandXopInclude)
void
setIdAllocator(WsuIdAllocator idAllocator)
void
setSecurityHeader(WSSecHeader securityHeader)
void
setStoreBytesInAttachment(boolean storeBytesInAttachment)
void
setWsDocInfo(WSDocInfo wsDocInfo)
-
-
-
Method Detail
-
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
public Document getDoc()
-
setDoc
public void setDoc(Document doc)
-
getSecurityHeader
public WSSecHeader getSecurityHeader()
-
setSecurityHeader
public void setSecurityHeader(WSSecHeader securityHeader)
-
getIdAllocator
public WsuIdAllocator getIdAllocator()
-
setIdAllocator
public void setIdAllocator(WsuIdAllocator idAllocator)
-
getCallbackLookup
public CallbackLookup getCallbackLookup()
-
setCallbackLookup
public void setCallbackLookup(CallbackLookup callbackLookup)
-
getAttachmentCallbackHandler
public CallbackHandler getAttachmentCallbackHandler()
-
setAttachmentCallbackHandler
public void setAttachmentCallbackHandler(CallbackHandler attachmentCallbackHandler)
-
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
public WSDocInfo getWsDocInfo()
-
setWsDocInfo
public void setWsDocInfo(WSDocInfo wsDocInfo)
-
-