Element Wrappers Classes and Interfaces

10-2 Oracle Fusion Middleware Reference for Oracle Security Developer Tools ■ saaj-api.jar - This is the standard SAAJ API and is included in JDK6; for previous JDKs, you can obtain it from your JavaEE container. ■ mail.jar, activation.jar - You can obtain these jars from your JavaEE container.

10.2 Classes and Interfaces

This section describes classes and interfaces in the Oracle Web Services Security API. It contains these topics: ■ Element Wrappers ■ The wsse:Security header ■ Security Tokens ST ■ Security Token References STR ■ Signing and Verifying ■ Encrypting and Decrypting

10.2.1 Element Wrappers

Oracle Web Services Security makes use of the concept of element wrappers. Note: Review Chapter 8, Oracle XML Security before proceeding. See Also: Section 8.7, About Element Wrappers in the Oracle Security Developer Tools XML APIs Table 10–1 Element Wrappers for Oracle Web Services Security XML Tag Name Java Class Name wsse:Security oracle.security.xmlsec.wss.WSSecurity wsse:BinarySecurityToken oracle.security.xmlsec.wss.WSSBinarySecurityToken or one of its derived classes depending on the valueType attribute: oracle.security.xmlsec.wss.x509.X509BinarySecurityToken oracle.security.xmlsec.wss.kerberos.KerberosBinarySecurityToken wsse: SecurityTokenReference oracle.security.xmlsec.wss.WSSecurityTokenReference wsse: Embedded oracle.security.xmlsec.wss.WSSEmbedded wsse11:EncryptedHeader oracle.security.xmlsec.wss.WSSEncryptedHeader wsse11:SignatureConfirmation oracle.security.xmlsec.wss.WSSignatureConfirmation wsse:KeyIdentifier oracle.security.xmlsec.wss.WSSKeyIdentifier or one of its derived classes depending on the valueType attribute: oracle.security.xmlsec.wss.x509.X509KeyIdentifier oracle.security.xmlsec.wss.saml.SAMLAssertionKeyIdentifier oracle.security.xmlsec.wss.saml2.SAML2AssertionKeyIdentifier oracle.security.xmlsec.wss.kerberos.KerberosKeyIdentifier oracle.security.xmlsec.wss.WSSEncryptedKeyIdentifier wsse:Reference oracle.security.xmlsec.wss.WSSReference wsu:Created oracle.security.xmlsec.wss.WSUCreated Oracle Web Services Security 10-3 As explained in Section 8.7, About Element Wrappers in the Oracle Security Developer Tools XML APIs , the java classes are only throwaway wrappers, while the DOM elements are the source of truth. You can create these wrapper classes using the appropriate constructor, which takes in the DOM element; you can get the underlying DOM element using the getElement method.

10.2.2 The wsse:Security header