|
Oracle Security Developer Tools Web Services Security Java API Reference 11g (11.1.1) E10678-02 |
||||||||
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.WSSElement
oracle.security.xmlsec.wss.WSSReference
public class WSSReference
Represents the wsse:Reference element which is used within a wsse:SecurityTokenReference element to reference a security token directly with an URI. The interpretation and processing rules around the value of the URI are token specific as identified by the ValueType attribute.
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
WSSReference(org.w3c.dom.Document owner, java.lang.String uri) Create a WSSReference instance with the given XML Document context. |
|
WSSReference(org.w3c.dom.Document owner, java.lang.String uri, java.lang.String valType) Create a WSSReference instance with the given XML Document context. |
|
WSSReference(org.w3c.dom.Element element) Create a WSSReference instance from the givem XML element. |
|
WSSReference(org.w3c.dom.Element element, java.lang.String systemId) Create a WSSReference instance from the givem XML element. |
Method Summary | |
---|---|
java.lang.Object |
getKey() Returns the key (symmetric or asymmetric) corresponding to the underlying WSS SecurityToken. |
oracle.security.xmlsec.util.QName |
getName() Get the name of the security token reference mechanism. |
WSSecurityToken |
getSecurityToken() Gets the underlying WSSecurity Token. |
java.lang.String |
getURI() Get the reference URI of the underlying WSSecurity Token. |
java.lang.String |
getValueType() Get the type of the underlying WSSecurity Token. |
void |
setURI(java.lang.String uri) Set the reference URI of the underlying WSSecurity Token. |
void |
setValueType(java.lang.String valType) Set the type of the underlying WSSecurity Token. |
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 |
Constructor Detail |
---|
public WSSReference(org.w3c.dom.Element element)
WSSReference
instance from the givem XML element.
element
- A wsse:Reference element.public WSSReference(org.w3c.dom.Element element, java.lang.String systemId)
WSSReference
instance from the givem XML element.
element
- A wsse:Reference element.systemId
- The URI string system ID for this element.public WSSReference(org.w3c.dom.Document owner, java.lang.String uri)
WSSReference
instance with the given XML Document context.
owner
- A XML Document to be used as the owner document of this structure.uri
- The reference target URI.public WSSReference(org.w3c.dom.Document owner, java.lang.String uri, java.lang.String valType)
WSSReference
instance with the given XML Document context.
owner
- A XML Document to be used as the owner document of this structure.uri
- The reference target URI.valType
- The reference target value type.Method Detail |
---|
public void setURI(java.lang.String uri)
uri
- The reference target URi.public java.lang.String getURI()
public void setValueType(java.lang.String valType)
valType
- The token's value type.public java.lang.String getValueType()
public oracle.security.xmlsec.util.QName getName()
getName
in interface WSSecurityTokenReferenceType
public WSSecurityToken getSecurityToken() throws WSSException
getSecurityToken
in interface WSSecurityTokenReferenceType
WSSecurityToken
or null if this reference points to an EncryptedKey. Use WSSReferece.getKey in that case.WSSException
public java.lang.Object getKey() throws WSSException
getKey
in interface WSSecurityTokenReferenceType
Key
.WSSException
|
Oracle Security Developer Tools Web Services Security Java API Reference 11g (11.1.1) E10678-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |