|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.dsig.XSAlgorithmIdentifier
oracle.security.xmlsec.enc.XEEncryptionMethod
public class XEEncryptionMethod
This class represents EncryptionMethod element which sets the algorithm and parameters to be used in encrypting the data or key. Standard encryption and key wrapping algorithm URI constants can be found in XMLURI
, including:
XMLURI.alg_aes128_CBC
XMLURI.alg_aes192_CBC
XMLURI.alg_aes256_CBC
XMLURI.alg_tripleDES_CBC
XMLURI.alg_kwAES128
XMLURI.alg_kwAES192
XMLURI.alg_kwAES256
XMLURI.alg_kwTripleDES
XMLURI.alg_rsaOAEP_MGF1
XMLURI.alg_rsaV15
XEEncryptedObject
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
XEEncryptionMethod(org.w3c.dom.Document doc, java.lang.String algorithm) Create an XEEncryptionMethod instance with the given XML Document context and algorithm URI. |
|
XEEncryptionMethod(org.w3c.dom.Element encMethod) Create an XEEncryptionMethod instance with the given EncryptionMethod element. |
|
XEEncryptionMethod(org.w3c.dom.Element encMethod, java.lang.String systemId) Create an XEEncryptionMethod instance with the given EncryptionMethod element. |
Method Summary | |
---|---|
XSAlgorithmIdentifier |
getDigestMethod() Returns message digest algorithm URI. |
java.lang.String |
getJCEAlgorithm() |
java.lang.String |
getJCEKeyAlgorithm() |
int |
getKeySize() Returns the key size provided in the KeySize child element. |
byte[] |
getOAEPParams() Returns the RSA-OAEP parameters. |
int |
keySize() Return the key size in bits either inherent in the algorithm URI or explicitly provided in the KeySize child element. |
void |
setDigestMethod(java.lang.String digestMethod) Set the DigestMethod child element for this EncryptionMethod element with the given message digest algorithm URI.This method should only be used for RSA-OAEP. |
void |
setDigestMethod(XSAlgorithmIdentifier digestMethod) Set the DigestMethod child element for this EncryptionMethod element with the given message digest algorithm. |
void |
setKeySize(int keySize) Sets the KeySize element with the given value. |
void |
setOAEPParams(byte[] params) Set the OAEPparams child element for this EncryptionMethod element with the given bytes. |
Methods inherited from class oracle.security.xmlsec.dsig.XSAlgorithmIdentifier |
---|
addParameter, addParameter, getAlgorithm, getParameters, setAlgorithm |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XEEncryptionMethod(org.w3c.dom.Element encMethod) throws org.w3c.dom.DOMException
XEEncryptionMethod
instance with the given EncryptionMethod element.
encMethod
- An EncryptionMethod element.org.w3c.dom.DOMException
public XEEncryptionMethod(org.w3c.dom.Element encMethod, java.lang.String systemId) throws org.w3c.dom.DOMException
XEEncryptionMethod
instance with the given EncryptionMethod element.
encMethod
- An EncryptionMethod element.systemId
- The URI string system ID for this element.org.w3c.dom.DOMException
XMLNode.setSystemId(java.lang.String)
public XEEncryptionMethod(org.w3c.dom.Document doc, java.lang.String algorithm) throws org.w3c.dom.DOMException
XEEncryptionMethod
instance with the given XML Document context and algorithm URI.
doc
- An XML Document to be used as the owner document of this element.algorithm
- The algorithm URI identifying the encryption algorithm to be used in encryping data or key.org.w3c.dom.DOMException
Method Detail |
---|
public void setKeySize(int keySize) throws org.w3c.dom.DOMException
keySize
- The integer value for the key size.org.w3c.dom.DOMException
public int getKeySize()
0
if the KeySize child element is not set.public void setDigestMethod(java.lang.String digestMethod) throws org.w3c.dom.DOMException
digestMethod
- The algorithm URI for the digest algorithm to be used in key transport with RSA-OAEP.org.w3c.dom.DOMException
XMLURI
public void setDigestMethod(XSAlgorithmIdentifier digestMethod) throws org.w3c.dom.DOMException
digestMethod
- The XSAlgorithmIdentifier
for the digest algorithm to be used in key transport with RSA-OAEP.org.w3c.dom.DOMException
public XSAlgorithmIdentifier getDigestMethod()
public void setOAEPParams(byte[] params) throws org.w3c.dom.DOMException
params
- The parameters for use with RSA-OAEP.org.w3c.dom.DOMException
public byte[] getOAEPParams()
null
if not specified.public java.lang.String getJCEAlgorithm() throws XESchemaException, XECipherException
XESchemaException
XECipherException
public java.lang.String getJCEKeyAlgorithm() throws XESchemaException, XECipherException
XESchemaException
XECipherException
public int keySize() throws XESchemaException, XECipherException
XESchemaException
XECipherException
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |