org.apache.abdera.security.xmlsec
Class XmlEncryption

java.lang.Object
  extended by org.apache.abdera.security.util.SecurityBase
      extended by org.apache.abdera.security.util.EncryptionBase
          extended by org.apache.abdera.security.xmlsec.XmlEncryption
All Implemented Interfaces:
Encryption

public class XmlEncryption
extends EncryptionBase


Field Summary
 
Fields inherited from class org.apache.abdera.security.util.SecurityBase
abdera
 
Constructor Summary
XmlEncryption()
           
XmlEncryption(Abdera abdera)
           
 
Method Summary
 Document decrypt(Document doc, EncryptionOptions options)
          Decrypt the document using the specified options
 Document encrypt(Document doc, EncryptionOptions options)
          Encrypt the document using the specified options
 EncryptionOptions getDefaultEncryptionOptions()
          Returns the default encryption/decryption options
 
Methods inherited from class org.apache.abdera.security.util.EncryptionBase
isEncrypted
 
Methods inherited from class org.apache.abdera.security.util.SecurityBase
domToFom, domToFom, fomToDom, fomToDom, getAbdera
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlEncryption

public XmlEncryption()

XmlEncryption

public XmlEncryption(Abdera abdera)
Method Detail

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 encrypt
options - 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 decrypt
options - 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.