|
Oracle Security Developer Tools Web Services Security Java API Reference 10g Release 2 (10.1.2.0.2) B15570-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.wss.WSSecurity
This class represents a wsse:Security
header block in a SOAPEnvelope
. It provides methods for signing and encrypting messages and security tokens.
Field Summary |
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
node, systemId |
Constructor Summary | |
WSSecurity(org.w3c.dom.Element element) Creates a new WSSecurity instance from the given Element node. |
|
WSSecurity(org.w3c.dom.Element element, java.lang.String systemId) Creates a new WSSecurity instance from the given Element node. |
Method Summary | |
void |
addSAMLAssertionToken(SAMLAssertionToken token) Add a SAML Assertion Token. |
void |
addSecurityToken(org.w3c.dom.Element token) Add a Security Token. |
void |
addSecurityTokenReference(WSSecurityTokenReference ref) Add a Security Token Reference. |
void |
addUsernameToken(UsernameToken token) Add a Username Token. |
static void |
addWsuIdToElement(java.lang.String id, org.w3c.dom.Element element) Deprecated. replaced by WSSUtils.addWsuIdToElement(String, Element) |
void |
addX509CertificateToken(X509BinarySecurityToken token) Add a X.509 Certificate Token. |
oracle.security.xmlsec.enc.XEEncryptedData |
createEncryptedData(java.lang.String dataType) Creates a new XEEncryptedData element in this WSSecurity's document, but does not append it to the WSSecurity element. |
oracle.security.xmlsec.enc.XEEncryptedKey |
createEncryptedKey() Creates a new XEEncryptedKey element in this WSSecurity's document, but does not append it to the WSSecurity element. |
oracle.security.xmlsec.dsig.XSSignature |
createSignature() Creates a new XSSignature element in this WSSecurity's document, but does not append it to the WSSecurity element. |
oracle.security.xmlsec.dsig.XSSignature |
createSignature(java.lang.String id) Creates a new Signature element in this document, but does not append it to the WSSecurity element. |
static void |
decrypt(oracle.security.xmlsec.enc.XEEncryptedData encData) Decrypts the EncrypedData element. |
static void |
decrypt(oracle.security.xmlsec.enc.XEEncryptedKey encKey) Decrypts the EncrypedData element referenced by the given EncryptedKey element in this structure. |
static void |
decrypt(oracle.security.xmlsec.enc.XEEncryptedKey encKey, PrivateKey keyDecKey) Decrypts the EncrypedData element referenced by the given EncryptedKey element in this structure. |
static void |
decrypt(oracle.security.xmlsec.enc.XEReferenceList refList, SymmetricKey symKey) Decrypts the EncrypedData element referenced by the given ReferenceList element in this structure. |
void |
decryptAll() Decrypts all the EncryptedData child elements and replaces the EncrypteData element with the decrypted XML result. |
void |
encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, java.lang.String usernameTokenURI, KeyDerivator keyDerivator) Perform encryption of the Security Header content. |
void |
encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, java.lang.String keyEncKeyURI, java.lang.String keyEncAlg) Perform encryption of the Security Header content. |
void |
encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, java.lang.String certTokenURI, java.lang.String keyEncAlg, SymmetricKey dataEncKey) Perform encryption of the Security Header content. |
void |
encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, SymmetricKey dataEncKey, PublicKey keyEncKey, java.lang.String keyEncAlg, java.lang.String keyEncKeyName, byte[] certId) Perform encryption of the Security Header content. |
void |
encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, SymmetricKey dataEncKey, oracle.security.crypto.cert.X509 keyEncCert, java.lang.String keyEncAlg) Perform encryption of the Security Header content. |
void |
encrypt(org.w3c.dom.Element element, boolean contentOnly, WSSEncryptionParams encParams) Deprecated. Replaced by encrypt(Element, boolean, String, SymmetricKey, PublicKey, String, String, byte[]) |
void |
encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlgURI, java.lang.String usernameTokenURI, KeyDerivator keyDerivator) Perform encryption of the Security Header content. |
void |
encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, java.lang.String keyEncKeyURI, java.lang.String keyEncAlg) Perform encryption of the Security Header content. |
void |
encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, java.lang.String certTokenURI, java.lang.String keyEncAlg, SymmetricKey dataEncKey) Perform encryption of the Security Header content. |
void |
encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, SymmetricKey dataEncKey, PublicKey keyEncKey, java.lang.String keyEncAlg, java.lang.String keyEncKeyName, byte[] certId) Perform encryption of the Security Header content. |
void |
encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, SymmetricKey dataEncKey, oracle.security.crypto.cert.X509 keyEncCert, java.lang.String keyEncAlg) Perform encryption of the Security Header content. |
void |
encrypt(java.util.List elements, boolean[] contentOnlys, WSSEncryptionParams encParams) Deprecated. Replaced by encrypt(List, boolean[], String, SymmetricKey, PublicKey, String, String, byte[]) |
java.util.List |
getBinaryTokens() Returns the list of Binary Security Tokens. |
java.util.List |
getEncryptedKeys() Returns all the EncryptedKey elements in this WSSecurity block. |
java.util.List |
getReferenceLists() Returns all the ReferenceList elements in this WSSecurity block. |
java.util.List |
getSAMLAssertionTokens() Returns the list of SAML Assertion Security Tokens. |
WSSecurityToken |
getSecurityTokenByWsuID(java.lang.String id) Get the Security token corresponding to the WSU identifier. |
java.util.List |
getSignatures() Returns all the Signature elements in this WSSecurity header block. |
WSUTimestamp |
getTimestamp() Get the token Timestamp. |
java.util.List |
getUsernameTokens() Returns the list of Username Security Tokens. |
static WSSecurity |
newInstance(org.w3c.dom.Document owner) Creates a new WSSecurity instance using the given owner document, but does not append it to any element. |
static WSSecurity |
newInstance(org.w3c.dom.Document owner, java.lang.String id) Creates a new WSSecurity instance using the given owner document, but does not append it to any element. |
static WSSecurity |
newInstance(java.lang.String id) Creates a new WSSecurity instance in a new owner document, and makes it the root element of the document. |
void |
setTimestamp(WSUTimestamp timeStamp) Set the token Timestamp. |
void |
sign(java.lang.String[] uris, UsernameToken token, KeyDerivator keyDerivator, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) Perform signing of the Security Header content using an HMAC key that is derived from the Username security token.. |
void |
sign(java.lang.String[] uris, WSSecurityTokenReference[] refs, WSSignatureParams sigParams) Sign the security tokens and token references. |
void |
sign(java.lang.String[] uris, WSSKeyIdentifier keyId, PrivateKey privKey, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) Perform signing of the Security Header content. |
void |
sign(java.lang.String[] uris, X509BinarySecurityToken token, PrivateKey privKey, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) Perform signing of the Security Header content. |
void |
sign(java.lang.String[] uris, X509IssuerSerial certIASN, PrivateKey privKey, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) Perform signing of the Security Header content. |
void |
sign(java.lang.String uri, UsernameToken token, KeyDerivator keyDerivator, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) Perform signing of the Security Header content using an HMAC key that is derived from the Username security token.. |
void |
sign(java.lang.String uri, WSSignatureParams sigParams) Sign the security token. |
void |
sign(WSSecurityTokenReference ref, WSSignatureParams sigParams) Sign the security token reference. |
void |
verify(oracle.security.xmlsec.dsig.XSSignature sig) Verifies the given XSSignature , following the ds:Signature and ds:Reference validation process defined in [XML-SIG]. |
static void |
verify(oracle.security.xmlsec.dsig.XSSignature sig, boolean searchDocument) Verifies the given XSSignature , following the ds:Signature and ds:Reference validation process defined in [XML-SIG]. |
void |
verifyAll() Verifies all of the XSSignature s in this wsse:Security header, following the ds:Signature and ds:Reference validation process defined in [XML-SIG]. |
Methods inherited from class oracle.security.xmlsec.util.XMLElement |
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix |
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 WSSecurity(org.w3c.dom.Element element)
WSSecurity
instance from the given Element node.element
- An org.w3c.dom.Element that conforms to the wsse:Security schema.public WSSecurity(org.w3c.dom.Element element, java.lang.String systemId)
WSSecurity
instance from the given Element node.element
- An org.w3c.dom.Element that conforms to the wsse:WSSecurity schema.systemId
- The URI string system ID for this XSSignature.Method Detail |
public static WSSecurity newInstance(java.lang.String id)
WSSecurity
instance in a new owner document, and makes it the root element of the document.id
- An optional string ID name for the wsse:Security element.WSSecurity
instance.public static WSSecurity newInstance(org.w3c.dom.Document owner)
WSSecurity
instance using the given owner document, but does not append it to any element.owner
- The XML Document to be used as the owner document of this structure.WSSecurity
instance.public static WSSecurity newInstance(org.w3c.dom.Document owner, java.lang.String id)
WSSecurity
instance using the given owner document, but does not append it to any element.owner
- The XML Document to be used as the owner document of this structure.id
- An optional string ID name for the wsse:Security element.WSSecurity
instance.public oracle.security.xmlsec.dsig.XSSignature createSignature(java.lang.String id)
id
- An optional string ID name for the Signature element.XSSignature
instance.public void addUsernameToken(UsernameToken token)
The Username Token will be imported if it is in a different org.w3c.dom.Document
.
token
- The Security Token to add.public void addX509CertificateToken(X509BinarySecurityToken token)
The X.509 Certificate Token will be imported if it is in a different org.w3c.dom.Document
.
token
- The Security Token to add.public void addSAMLAssertionToken(SAMLAssertionToken token)
The SAML Assertione Token will be imported if it is in a different org.w3c.dom.Document
.
token
- The Security Token to add.public void addSecurityToken(org.w3c.dom.Element token)
The input token element is not schema validated.
The Security Token will be imported if it is in a different org.w3c.dom.Document
.
token
- The Security Token element to add.public void addSecurityTokenReference(WSSecurityTokenReference ref)
ref
- The Security Token reference to add.public void setTimestamp(WSUTimestamp timeStamp)
timeStamp
- The timestamp.public WSUTimestamp getTimestamp()
public void encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, java.lang.String usernameTokenURI, KeyDerivator keyDerivator) throws WSSException
The keyEncKeyURI
must be a reference to a X.509 Token or a SAML Assertion token with a Holder of Key saml:ConfirmationMethod.
element
- The element to encrypt.contentOnly
- If true
only encrypt the children of the element
else encrypt the whole element.dataEncAlg
- The content encryption algorithm.usernameTokenURI
- The UsernameToken URI.keyDerivator
- The key derivation interface to use.WSSException
public void encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlgURI, java.lang.String usernameTokenURI, KeyDerivator keyDerivator) throws WSSException
The keyEncKeyURI
must be a reference to a X.509 Token or a SAML Assertion token with a Holder of Key saml:ConfirmationMethod.
elements
- The list of org.w3c.dom.Elements
to encrypt.contentOnlys
- The List of boolean values for each List
elements.If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.dataEncAlgURI
- The content encryption algorithm.usernameTokenURI
- The UsernameToken URI.keyDerivator
- The key derivation interface to use.WSSException
public void encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, java.lang.String certTokenURI, java.lang.String keyEncAlg, SymmetricKey dataEncKey) throws WSSException
The keyEncKeyURI
must be a reference to a X.509 Token or a SAML Assertion token with a Holder of Key saml:ConfirmationMethod.
element
- The element to encrypt.contentOnly
- If true
only encrypt the children of the element
else encrypt the whole element.dataEncAlg
- The content encryption algorithm.certTokenURI
- The X.509 certificate token URI.keyEncAlg
- The key key encryption algorithm.dataEncKey
- The content encryption key.WSSException
public void encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, java.lang.String certTokenURI, java.lang.String keyEncAlg, SymmetricKey dataEncKey) throws WSSException
The keyEncKeyURI
must be a reference to a X.509 Token or a SAML Assertion token with a Holder of Key saml:ConfirmationMethod. s
elements
- The list of org.w3c.dom.Elements
to encrypt.contentOnlys
- The List of boolean values for each List
elements.If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.dataEncAlg
- The content encryption algorithm.certTokenURI
- The X.509 certificate token URI.keyEncAlg
- The key key encryption algorithm.dataEncKey
- The content encryption key.WSSException
public void encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, java.lang.String keyEncKeyURI, java.lang.String keyEncAlg) throws WSSException
The keyEncKeyURI
must be a reference to a X.509 Token or a SAML Assertion token with a Holder of Key saml:ConfirmationMethod.
element
- The element to encrypt.contentOnly
- If true
only encrypt the children of the element
else encrypt the whole element.dataEncAlg
- The content encryption algorithm.keyEncKeyURI
- The key encryption certificate URI.keyEncAlg
- The key encryption algorithm.WSSException
public void encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, java.lang.String keyEncKeyURI, java.lang.String keyEncAlg) throws WSSException
The keyEncKeyURI
must be a reference to a X.509 Token or a SAML Assertion token with a Holder of Key saml:ConfirmationMethod.
elements
- The list of org.w3c.dom.Elements
to encrypt.contentOnlys
- The List of boolean values for each List
elements.If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.dataEncAlg
- The content encryption algorithm.keyEncKeyURI
- The key encryption certificate URI.keyEncAlg
- The key encryption algorithm.WSSException
public void sign(java.lang.String uri, UsernameToken token, KeyDerivator keyDerivator, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) throws WSSException
uri
- The URI of the element to encrypt.token
- The Username security token used to derive the signing HMAC key.keyDerivator
- The key derivation class.digestAlg
- The message digest algorithm.c14NAlg
- The canonicalization algorithm.signatureAlg
- The signature algorithm.usingDecryptionTransform
- Indicates the use of the decryption transform.WSSException
public void sign(java.lang.String[] uris, UsernameToken token, KeyDerivator keyDerivator, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) throws WSSException
uris
- The URI list of org.w3c.dom.Elements
to encrypt.token
- The Username security token used to derive the signing HMAC key.keyDerivator
- The key derivation class.digestAlg
- The message digest algorithm.c14NAlg
- The canonicalization algorithm.signatureAlg
- The signature algorithm.usingDecryptionTransform
- Indicates the use of the decryption transform.WSSException
public void encrypt(org.w3c.dom.Element element, boolean contentOnly, WSSEncryptionParams encParams) throws WSSException
encrypt(Element, boolean, String, SymmetricKey, PublicKey, String, String, byte[])
element
- The element to encrypt.contentOnly
- If true
only encrypt the children of the element
else encrypt the whole element.encParams
- The encryption algorithm and key parameters.WSSException
public void encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, SymmetricKey dataEncKey, PublicKey keyEncKey, java.lang.String keyEncAlg, java.lang.String keyEncKeyName, byte[] certId) throws WSSException
element
- The element to encrypt.contentOnly
- If true
only encrypt the children of the element
else encrypt the whole element.dataEncAlg
- The content encryption algorithm.dataEncKey
- The content encryption key. If set to null</null>, a randomly generated key will be used.
keyEncKey
- The key encryption key that will be used to secure the content encryption key.
keyEncAlg
- The key encryption algorithm.keyEncKeyName
- The optional key encryption key name.certId
- The optional key certificate identifier.WSSException
public void encrypt(java.util.List elements, boolean[] contentOnlys, WSSEncryptionParams encParams) throws WSSException
encrypt(List, boolean[], String, SymmetricKey, PublicKey, String, String, byte[])
elements
- The list of org.w3c.dom.Elements
to encrypt.contentOnlys
- The List of boolean values for each List
elements.If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.encParams
- The encryption algorithm and key parameters.WSSException
public void encrypt(org.w3c.dom.Element element, boolean contentOnly, java.lang.String dataEncAlg, SymmetricKey dataEncKey, oracle.security.crypto.cert.X509 keyEncCert, java.lang.String keyEncAlg) throws WSSException
element
- The org.w3c.dom.Elements
to encrypt.contentOnly
- If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.dataEncAlg
- The content encryption key.dataEncKey
- The content encryption key. If set to null</null>, a randomly generated key will be used.
keyEncCert
- The key encryption certificate that will be used to secure the content encryption key.
keyEncAlg
- The key encryption algorithm.WSSException
public void encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, SymmetricKey dataEncKey, oracle.security.crypto.cert.X509 keyEncCert, java.lang.String keyEncAlg) throws WSSException
elements
- The list of org.w3c.dom.Elements
to encrypt.contentOnlys
- The List of boolean values for each List
elements.If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.dataEncAlg
- The content encryption key.dataEncKey
- The content encryption key. If set to null</null>, a randomly generated key will be used.
keyEncCert
- The key encryption certificate that will be used to secure the content encryption key.
keyEncAlg
- The key encryption algorithm.WSSException
public void encrypt(java.util.List elements, boolean[] contentOnlys, java.lang.String dataEncAlg, SymmetricKey dataEncKey, PublicKey keyEncKey, java.lang.String keyEncAlg, java.lang.String keyEncKeyName, byte[] certId) throws WSSException
elements
- The list of org.w3c.dom.Elements
to encrypt.contentOnlys
- The List of boolean values for each List
elements.If true
only encrypt the children of the corresponding List
element else encrypt the entire corresponding List
element.dataEncAlg
- The content encryption key.dataEncKey
- The content encryption key. If set to null</null>, a randomly generated key will be used.
keyEncKey
- The key encryption key that will be used to secure the content encryption key.
keyEncAlg
- The key encryption algorithm.keyEncKeyName
- The optional key encryption key name.certId
- The optional key certificate identifier.WSSException
public void sign(java.lang.String[] uris, X509BinarySecurityToken token, PrivateKey privKey, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) throws WSSException, oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
uris
- The URI List
of the elements to encrypt.token
- The X.509 certificate security token.privKey
- The signing key.digestAlg
- The message digest algorithm.c14NAlg
- The canonicalization algorithm.signatureAlg
- The signature algorithm.usingDecryptionTransform
- Indicates the use of the decryption transform.WSSException
oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public void sign(java.lang.String[] uris, X509IssuerSerial certIASN, PrivateKey privKey, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) throws WSSException, oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
uris
- The URI List
of the elements to encrypt.certIASN
- The issuer and serial number of signing certificate.privKey
- The signing key.digestAlg
- The message digest algorithm.c14NAlg
- The canonicalization algorithm.signatureAlg
- The signature algorithm.usingDecryptionTransform
- Indicates the use of the decryption transform.WSSException
oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public void sign(java.lang.String[] uris, WSSKeyIdentifier keyId, PrivateKey privKey, java.lang.String digestAlg, java.lang.String c14NAlg, java.lang.String signatureAlg, boolean usingDecryptionTransform) throws WSSException, oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
uris
- The URI List
of the elements to encrypt.keyId
- The signing certificate public key identifier.privKey
- The signing key. If null
, the X509KeyIdentifierResolver will be used.digestAlg
- The message digest algorithm.c14NAlg
- The canonicalization algorithm.signatureAlg
- The signature algorithm.usingDecryptionTransform
- Indicates the use of the decryption transform.WSSException
oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public void sign(java.lang.String uri, WSSignatureParams sigParams) throws WSSException
uri
- The reference URI.sigParams
- The signature algorithm and key parameters.WSSException
public void sign(WSSecurityTokenReference ref, WSSignatureParams sigParams) throws WSSException
ref
- The security token reference.sigParams
- The signature algorithm and key parameters.WSSException
public void sign(java.lang.String[] uris, WSSecurityTokenReference[] refs, WSSignatureParams sigParams) throws WSSException
uris
- The reference URI list.refs
- The security token reference list.sigParams
- The signature algorithm and key parameters.WSSException
public void decryptAll() throws WSSException
WSSException
public java.util.List getReferenceLists()
ReferenceList
elements in this WSSecurity block.List
of xenc:ReferenceList elements.public static void decrypt(oracle.security.xmlsec.enc.XEReferenceList refList, SymmetricKey symKey) throws WSSException
refList
- The list of encrypted references.symKey
- The content decryption key.WSSException
public java.util.List getEncryptedKeys()
EncryptedKey
elements in this WSSecurity block.List
of EncryptedKey elements (oracle.security.xmlsec.enc.XEEncryptedKey).public static void decrypt(oracle.security.xmlsec.enc.XEEncryptedKey encKey, PrivateKey keyDecKey) throws WSSException
encKey
- The EncryptedKey element whose references will be decrypted.keyDecKey
- The key to decrypt the content encryption key.WSSException
public static void decrypt(oracle.security.xmlsec.enc.XEEncryptedKey encKey) throws WSSException, oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
The decryption key is obtained from the KeyRetriever facility.
encKey
- The EncryptedKey element whose references are to be decrypted.WSSException
oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public static void decrypt(oracle.security.xmlsec.enc.XEEncryptedData encData) throws WSSException, oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
The decryption key is obtained from the KeyRetriever facility.
encData
- The EncryptedData element.WSSException
oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public java.util.List getSignatures()
List
of signature (com.phaos.xml.dsig.XSSignature
) elements.public void verify(oracle.security.xmlsec.dsig.XSSignature sig) throws WSSException
XSSignature
, following the ds:Signature and ds:Reference validation process defined in [XML-SIG].sig
- The signature instance to verify.WSSException
public static void verify(oracle.security.xmlsec.dsig.XSSignature sig, boolean searchDocument) throws WSSException
XSSignature
, following the ds:Signature and ds:Reference validation process defined in [XML-SIG].sig
- The signature instance to verify.searchDocument
- If available, use the signing certificate present in the same Document.WSSException
public void verifyAll() throws WSSException
XSSignature
s in this wsse:Security header, following the ds:Signature and ds:Reference validation process defined in [XML-SIG].WSSException
public static void addWsuIdToElement(java.lang.String id, org.w3c.dom.Element element)
WSSUtils.addWsuIdToElement(String, Element)
id
- The attribute value.element
- The org.w3c.dom.Element
whose wsu:Id attribute will be set.public oracle.security.xmlsec.dsig.XSSignature createSignature() throws org.w3c.dom.DOMException
XSSignature
.org.w3c.dom.DOMException
public oracle.security.xmlsec.enc.XEEncryptedData createEncryptedData(java.lang.String dataType) throws org.w3c.dom.DOMException
dataType
- Type information identifying the content.XEEncryptedData
.org.w3c.dom.DOMException
public oracle.security.xmlsec.enc.XEEncryptedKey createEncryptedKey() throws org.w3c.dom.DOMException
XEEncryptedKey
.org.w3c.dom.DOMException
public WSSecurityToken getSecurityTokenByWsuID(java.lang.String id)
id
- The wsu:Id value.null
otherwise.public java.util.List getUsernameTokens()
UsernameToken
elements.public java.util.List getBinaryTokens()
BinarySecurityToken
elements.public java.util.List getSAMLAssertionTokens()
SAMLAssertionToken
elements.
|
Oracle Security Developer Tools Web Services Security Java API Reference 10g Release 2 (10.1.2.0.2) B15570-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |