public class WSSReference extends WSSElement implements WSSecurityTokenReferenceType
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getId, getWsuId, setId, setWsuIdaddNSPrefixAttr, 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, setDefaultNSPrefixappendChild, 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, toStringXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNodepublic 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.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 WSSecurityTokenReferenceTypepublic WSSecurityToken getSecurityToken() throws WSSException
getSecurityToken in interface WSSecurityTokenReferenceTypeWSSecurityToken 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 WSSecurityTokenReferenceTypeKey.WSSException