Oracle Security Developer Tools SAML 2.0 Java API Reference
10g (10.1.4.0.1)

B28174-01


oracle.security.xmlsec.saml2.protocol
Class NewEncryptedID

java.lang.Object
  extended byoracle.security.xmlsec.util.XMLNode
      extended byoracle.security.xmlsec.util.XMLElement
          extended byoracle.security.xmlsec.saml2.core.EncryptedElement
              extended byoracle.security.xmlsec.saml2.protocol.NewEncryptedID

All Implemented Interfaces:
SAML2EncryptedType, SAML2NameIdentifier

public class NewEncryptedID
extends EncryptedElement
implements SAML2NameIdentifier

Represents an encrypted new identifier.


Field Summary

 

Fields inherited from class oracle.security.xmlsec.util.XMLNode
node, systemId

 

Constructor Summary
  NewEncryptedID(org.w3c.dom.Document owner)
          Creates a new NewEncryptedID instance.
protected NewEncryptedID(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName)
          Creates a new NewEncryptedID instance.
  NewEncryptedID(org.w3c.dom.Element element)
          Creates a new NewEncryptedID instance from the given Element node.
  NewEncryptedID(org.w3c.dom.Element element, java.lang.String SystemId)
          Creates a new NewEncryptedID instance from the given Element node.

 

Method Summary
 oracle.security.xmlsec.enc.XEEncryptedData encryptNewID(NewID newID, java.lang.String dataEncAlg, oracle.security.crypto.core.SymmetricKey dataEncKey, java.lang.String dataEncKeyName)
          Encrypt the EndpointType Element with the given algorithm and content encryption key, where the key is identified by a key name.
 oracle.security.xmlsec.enc.XEEncryptedData encryptNewID(NewID NewID, java.lang.String dataEncAlg, oracle.security.crypto.core.SymmetricKey dataEncKey, java.lang.String keyEncAlg, oracle.security.crypto.core.Key keyEncKey, java.lang.String keyEncKeyName)
          Encrypt XML data of type XML Element or XML Element Content with the given algorithm and key, where the data encryption key is encrypted with the given key encryption key.
 java.lang.String getIDName()
          Returns the tag name of the identifier.
 java.lang.String getIDNamespaceURI()
          Returns the namespace URI of the identifier element.

 

Methods inherited from class oracle.security.xmlsec.saml2.core.EncryptedElement
addEncryptedKey, decryptElement, encryptElement, encryptElement, getEncryptedData, getEncryptedKeys, removeChildren, setEncryptedData

 

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

 

Methods inherited from interface oracle.security.xmlsec.saml2.core.SAML2NameIdentifier
getNode

 

Constructor Detail

NewEncryptedID

public NewEncryptedID(org.w3c.dom.Element element)
               throws org.w3c.dom.DOMException
Creates a new NewEncryptedID instance from the given Element node.
Parameters:
element - A NewEncryptedID element.
Throws:
org.w3c.dom.DOMException

NewEncryptedID

public NewEncryptedID(org.w3c.dom.Element element,
                      java.lang.String SystemId)
               throws org.w3c.dom.DOMException
Creates a new NewEncryptedID instance from the given Element node.
Parameters:
element - A NewEncryptedID element.
Throws:
org.w3c.dom.DOMException

NewEncryptedID

public NewEncryptedID(org.w3c.dom.Document owner)
               throws org.w3c.dom.DOMException
Creates a new NewEncryptedID instance.
Parameters:
owner - The owner document of the new NewEncryptedID.
Throws:
org.w3c.dom.DOMException

NewEncryptedID

protected NewEncryptedID(org.w3c.dom.Document owner,
                         java.lang.String nsURI,
                         java.lang.String localName)
                  throws org.w3c.dom.DOMException
Creates a new NewEncryptedID instance. This is for use in any sub-class for extension of the EndpointType element.
Parameters:
owner - The owner document of the new NewEncryptedID.
nsURI - The namespace URI in which the new NewEncryptedID is to be created.
localName - The localName of the element represented by the class that extends this class.
Throws:
org.w3c.dom.DOMException

Method Detail

encryptNewID

public oracle.security.xmlsec.enc.XEEncryptedData encryptNewID(NewID newID,
                                                               java.lang.String dataEncAlg,
                                                               oracle.security.crypto.core.SymmetricKey dataEncKey,
                                                               java.lang.String dataEncKeyName)
                                                        throws oracle.security.xmlsec.enc.XEException
Encrypt the EndpointType Element with the given algorithm and content encryption key, where the key is identified by a key name.

The supported data encrytion algorithms are:

Parameters:
newID - The identifier to encrypt.
dataEncAlg - The URI identifying the data encryption algorithm.
dataEncKey - The data encryption key. If null, a encryption key will be randomly generated.
dataEncKeyName - The name identifying the data encryption key, optional.
Returns:
A new XEEncryptedData which replaces the nameID element.
Throws:
oracle.security.xmlsec.enc.XEException - If an error occurs in encrypting the data.

encryptNewID

public oracle.security.xmlsec.enc.XEEncryptedData encryptNewID(NewID NewID,
                                                               java.lang.String dataEncAlg,
                                                               oracle.security.crypto.core.SymmetricKey dataEncKey,
                                                               java.lang.String keyEncAlg,
                                                               oracle.security.crypto.core.Key keyEncKey,
                                                               java.lang.String keyEncKeyName)
                                                        throws oracle.security.xmlsec.enc.XEException
Encrypt XML data of type XML Element or XML Element Content with the given algorithm and key, where the data encryption key is encrypted with the given key encryption key.

The supported data encrytion algorithms are:

The supported key encrytion algorithms are:

For RSA-OAEP, the following parameters are used:

Parameters:
NewID - The identifier to encrypt.
dataEncAlg - The URI identifying the data encryption algorithm.
dataEncKey - The data encryption key. If null, a encryption key will be randomly generated.
keyEncAlg - The URI identifying the key encryption algorithm.
keyEncKey - The key encryption key.
keyEncKeyName - The name identifying the key encryption key, optional.
Returns:
A new XEEncryptedData which replaces the NewID element.
Throws:
oracle.security.xmlsec.enc.XEException - If an error occurs in encrypting the data.

getIDNamespaceURI

public java.lang.String getIDNamespaceURI()
Returns the namespace URI of the identifier element.
Specified by:
getIDNamespaceURI in interface SAML2NameIdentifier
Returns:
A URI reference.

getIDName

public java.lang.String getIDName()
Returns the tag name of the identifier.
Specified by:
getIDName in interface SAML2NameIdentifier
Returns:
A String value.

Oracle Security Developer Tools SAML 2.0 Java API Reference
10g (10.1.4.0.1)

B28174-01


Copyright © 2005, 2006 , Oracle. All rights reserved.