Skip navigation links

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

E10678-05


oracle.security.xmlsec.wss.kerberos
Class KerberosKeyIdentifier

java.lang.Object
  extended by oracle.security.xmlsec.util.XMLNode
      extended by oracle.security.xmlsec.util.XMLElement
          extended by oracle.security.xmlsec.wss.WSSElement
              extended by oracle.security.xmlsec.wss.WSSKeyIdentifier
                  extended by oracle.security.xmlsec.wss.kerberos.KerberosKeyIdentifier

All Implemented Interfaces:
WSSecurityTokenReferenceType

public class KerberosKeyIdentifier
extends WSSKeyIdentifier

Represents a wsse:KeyIdentifier of type kerberos v5 ap_req.


Field Summary
protected static java.lang.String DEFAULT_ENCODING_TYPE
          The default encoding algorithm used.

 

Fields inherited from class oracle.security.xmlsec.wss.WSSKeyIdentifier
vt_ThumbprintSHA1

 

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

 

Constructor Summary
KerberosKeyIdentifier(org.w3c.dom.Document owner)
          Create a new KerberosKeyIdentifier instance.
KerberosKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType)
          Create a new KerberosKeyIdentifier instance.
KerberosKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
          Create a new Key Identifier instance.
KerberosKeyIdentifier(org.w3c.dom.Element element)
          Create a new KerberosKeyIdentifier instance from the given XML element.
KerberosKeyIdentifier(org.w3c.dom.Element element, java.lang.String systemId)
          Create a new KerberosKeyIdentifier instance from the given XML element.

 

Method Summary
static void addResolver(KerberosKeyIdentifierResolver resolver)
          Register a KerberosKeyIdentifierResolver instance for use in key identifier resolver operations.
protected  java.lang.String getDefaultEncodingType()
          Return the default encoding type of key identifier.
 java.lang.Object getKey()
          Get the underlying security token.
static java.util.List getResolvers()
          Get the registered KerberosKeyIdentifierResolvers.
 WSSecurityToken getSecurityToken()
          Get the underlying security token.

 

Methods inherited from class oracle.security.xmlsec.wss.WSSKeyIdentifier
addResolver, getEncodingType, getName, getThumbprint, getValue, getValueType, setEncodingType, setValue, setValueType

 

Methods inherited from class oracle.security.xmlsec.wss.WSSElement
getId, getWsuId, setId, setWsuId

 

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

 

Methods inherited from interface oracle.security.xmlsec.wss.WSSecurityTokenReferenceType
getNode

 

Field Detail

DEFAULT_ENCODING_TYPE

protected static final java.lang.String DEFAULT_ENCODING_TYPE
The default encoding algorithm used.
See Also:
Constant Field Values

Constructor Detail

KerberosKeyIdentifier

public KerberosKeyIdentifier(org.w3c.dom.Element element)
Create a new KerberosKeyIdentifier instance from the given XML element.
Parameters:
element - A wsse:KeyIdentifier element.

KerberosKeyIdentifier

public KerberosKeyIdentifier(org.w3c.dom.Element element,
                             java.lang.String systemId)
Create a new KerberosKeyIdentifier instance from the given XML element.
Parameters:
element - A wsse:KeyIdentifier element.
systemId - The URI string system ID for this element.

KerberosKeyIdentifier

public KerberosKeyIdentifier(org.w3c.dom.Document owner)
Create a new KerberosKeyIdentifier instance.
Parameters:
owner - A XML Document to be used as the owner document of this structure.

KerberosKeyIdentifier

public KerberosKeyIdentifier(org.w3c.dom.Document owner,
                             java.lang.String valType)
Create a new KerberosKeyIdentifier instance.
Parameters:
owner - A XML Document to be used as the owner document of this structure.
valType - The key identifier value type.

KerberosKeyIdentifier

public KerberosKeyIdentifier(org.w3c.dom.Document owner,
                             java.lang.String valType,
                             java.lang.String encType)
Create a new Key Identifier instance.
Parameters:
owner - A XML Document to be used as the owner document of this structure.
valType - The value type of the key identifier.
encType - The encoding type of the key identifier .

Method Detail

addResolver

public static void addResolver(KerberosKeyIdentifierResolver resolver)
Register a KerberosKeyIdentifierResolver instance for use in key identifier resolver operations.
Parameters:
resolver - The kerberos key identifier resolver.

getResolvers

public static java.util.List getResolvers()
Get the registered KerberosKeyIdentifierResolvers.
Returns:
The List of registered kerberos key identifier resolvers.

getSecurityToken

public WSSecurityToken getSecurityToken()
                                 throws WSSException
Get the underlying security token.

Relies on the KerberosKeyIdentifierResolver to obtain the Kerberos V5 AP_REQ corresponding to the Kerberos KeyIdentifier.

Specified by:
getSecurityToken in interface WSSecurityTokenReferenceType
Overrides:
getSecurityToken in class WSSKeyIdentifier
Returns:
The Kerberos certificate token.
Throws:
WSSException

getKey

public java.lang.Object getKey()
                        throws WSSException
Get the underlying security token.
Specified by:
getKey in interface WSSecurityTokenReferenceType
Overrides:
getKey in class WSSKeyIdentifier
Returns:
null.
Throws:
WSSException

getDefaultEncodingType

protected java.lang.String getDefaultEncodingType()
Return the default encoding type of key identifier.

This is necessary to handle messages that do not contain the EncodingType attribute.

Overrides:
getDefaultEncodingType in class WSSKeyIdentifier
Returns:
The key identifier's default encoding typ i.e Base-64..

Skip navigation links

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

E10678-05


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