Skip navigation links

Oracle Fusion Middleware XKMS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10679-05


oracle.security.xmlsec.xkms
Class AbstractKeyBinding

java.lang.Object
  extended by oracle.security.xmlsec.util.XMLNode
      extended by oracle.security.xmlsec.util.XMLElement
          extended by oracle.security.xmlsec.xkms.AbstractKeyBinding

Direct Known Subclasses:
PrototypeKeyBinding, QueryKeyBinding, UnverifiedKeyBinding

public abstract class AbstractKeyBinding
extends oracle.security.xmlsec.util.XMLElement

Abstract XKMS KeyBindingAbstractType element for use with requests and responses.


Field Summary

 

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

 

Constructor Summary
AbstractKeyBinding(org.w3c.dom.Document owner, java.lang.String tagName)
          Creates a new AbstractKeyBinding instance.
AbstractKeyBinding(org.w3c.dom.Document owner, java.lang.String tagName, java.lang.String systemId)
          Creates a new AbstractKeyBinding instance.
AbstractKeyBinding(org.w3c.dom.Element element)
          Creates a new AbstractKeyBinding instance from the given Element node.

 

Method Summary
 void addKeyUsage(java.lang.String keyUsage)
          Adds a KeyUsage code.
 void addUseKeyWith(java.lang.String application, java.lang.String identifier)
          Adds a UseKeyWith URI.
 java.lang.String getID()
          Returns the Id attribute value for this KeyBinding, or null if none is set.
 oracle.security.xmlsec.dsig.XSKeyInfo getKeyInfo()
          Returns the dsig:KeyInfo child element for this KeyBinding, or null if none is set.
 java.util.List getKeyUsages()
          Returns a list of KeyUsage values.
 java.util.List getUseKeyWithApplications()
          Returns a list of UseKeyWith Application URIs.
 java.util.List getUseKeyWithIdentifiers()
          Returns a list of UseKeyWith Identifier URIs.
 void setID(java.lang.String id)
          Sets the Id attribute for this KeyBinding.
 void setKeyInfo(oracle.security.xmlsec.dsig.XSKeyInfo keyInfo)
          Sets the dsig:KeyInfo child element for this KeyBinding.

 

Methods inherited from class oracle.security.xmlsec.util.XMLElement
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, 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

AbstractKeyBinding

public AbstractKeyBinding(org.w3c.dom.Document owner,
                          java.lang.String tagName)
                   throws org.w3c.dom.DOMException
Creates a new AbstractKeyBinding instance.
Parameters:
owner - The owner document of the new AbstractKeyBinding.
tagName - The name of the element to be created.
Throws:
org.w3c.dom.DOMException

AbstractKeyBinding

public AbstractKeyBinding(org.w3c.dom.Document owner,
                          java.lang.String tagName,
                          java.lang.String systemId)
                   throws org.w3c.dom.DOMException
Creates a new AbstractKeyBinding instance.
Parameters:
owner - The owner document of the new AbstractKeyBinding.
tagName - The name of the element to be created.
systemId - The URI string system ID for the Message.
Throws:
org.w3c.dom.DOMException

AbstractKeyBinding

public AbstractKeyBinding(org.w3c.dom.Element element)
                   throws org.w3c.dom.DOMException
Creates a new AbstractKeyBinding instance from the given Element node.
Parameters:
element - An Element node in the XML document that conforms to the XKMS AbstractKeyBinding schema.
Throws:
org.w3c.dom.DOMException

Method Detail

addKeyUsage

public void addKeyUsage(java.lang.String keyUsage)
                 throws org.w3c.dom.DOMException
Adds a KeyUsage code.
Parameters:
keyUsage - A URI specifiying intended key usage.
Throws:
org.w3c.dom.DOMException

addUseKeyWith

public void addUseKeyWith(java.lang.String application,
                          java.lang.String identifier)
                   throws org.w3c.dom.DOMException
Adds a UseKeyWith URI.
Parameters:
application - A URI string that specifies the application protocol with which the key may be used.
identifier - A URI string that specifies the subject to which the key corresponds within the specified application protocol.
Throws:
org.w3c.dom.DOMException

getKeyInfo

public oracle.security.xmlsec.dsig.XSKeyInfo getKeyInfo()
Returns the dsig:KeyInfo child element for this KeyBinding, or null if none is set.
Returns:
The dsig:KeyInfo for this KeyBinding.

getKeyUsages

public java.util.List getKeyUsages()
Returns a list of KeyUsage values.
Returns:
A List of KeyUsage URIs.

getUseKeyWithApplications

public java.util.List getUseKeyWithApplications()
Returns a list of UseKeyWith Application URIs.
Returns:
A List of application URI strings.

getUseKeyWithIdentifiers

public java.util.List getUseKeyWithIdentifiers()
Returns a list of UseKeyWith Identifier URIs.
Returns:
A List of URI strings.

setID

public void setID(java.lang.String id)
           throws org.w3c.dom.DOMException
Sets the Id attribute for this KeyBinding.
Parameters:
id - The value of the ID attribute.
Throws:
org.w3c.dom.DOMException

getID

public java.lang.String getID()
Returns the Id attribute value for this KeyBinding, or null if none is set.
Returns:
The value of the ID attribute.

setKeyInfo

public void setKeyInfo(oracle.security.xmlsec.dsig.XSKeyInfo keyInfo)
                throws org.w3c.dom.DOMException
Sets the dsig:KeyInfo child element for this KeyBinding.
Parameters:
keyInfo - The dsig:KeyInfo for this KeyBinding.
Throws:
org.w3c.dom.DOMException

Skip navigation links

Oracle Fusion Middleware XKMS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10679-05


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