org.apache.abdera.security.xmlsec
Class XmlEncryption
java.lang.Object
org.apache.abdera.security.util.SecurityBase
org.apache.abdera.security.util.EncryptionBase
org.apache.abdera.security.xmlsec.XmlEncryption
- All Implemented Interfaces:
- Encryption
public class XmlEncryption
- extends EncryptionBase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlEncryption
public XmlEncryption()
XmlEncryption
public XmlEncryption(Abdera abdera)
encrypt
public Document encrypt(Document doc,
EncryptionOptions options)
throws SecurityException
- Description copied from interface:
Encryption
- Encrypt the document using the specified options
- Parameters:
doc
- The document to encryptoptions
- The encryption options
- Returns:
- The encrypted document
- Throws:
SecurityException
- if the encryption failed
decrypt
public Document decrypt(Document doc,
EncryptionOptions options)
throws SecurityException
- Description copied from interface:
Encryption
- Decrypt the document using the specified options
- Parameters:
doc
- The document to decryptoptions
- The decryption options
- Returns:
- The decrypted document
- Throws:
SecurityException
- if the decryption failed
getDefaultEncryptionOptions
public EncryptionOptions getDefaultEncryptionOptions()
- Description copied from interface:
Encryption
- Returns the default encryption/decryption options
- See Also:
EncryptionOptions
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.