|
Oracle Security Developer Tools XML Security Java API Reference 10g (10.1.4.0.1) B28178-01 |
|||||||||
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
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.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 | |
oracle.security.crypto.core.AlgorithmIdentifier |
getAlgID() Returns the AlgorithmIdentifier for the encryption algorithm identified by the EncryptionMethod element. |
XSAlgorithmIdentifier |
getDigestMethod() Returns message digest algorithm URI. |
oracle.security.crypto.core.AlgorithmIdentifier |
getKeyAlgID() Returns the AlgorithmIdentifier of the key intended for the encryption algorithm identified by the algorithm URI. |
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.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.XMLNode.setSystemId(java.lang.String)
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 oracle.security.crypto.core.AlgorithmIdentifier getAlgID() throws XESchemaException, XECipherException
AlgorithmIdentifier
for the encryption algorithm identified by the EncryptionMethod element.XESchemaException
XECipherException
public oracle.security.crypto.core.AlgorithmIdentifier getKeyAlgID() throws XESchemaException, XECipherException
AlgorithmIdentifier
of the key intended for the encryption algorithm identified by the algorithm URI.XESchemaException
XECipherException
public int keySize() throws XESchemaException, XECipherException
XESchemaException
XECipherException
|
Oracle Security Developer Tools XML Security Java API Reference 10g (10.1.4.0.1) B28178-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |