public abstract class WSSBinarySecurityToken extends WSSElement implements WSSecurityToken
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ENCODING_TYPE
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
WSSBinarySecurityToken(org.w3c.dom.Document owner, java.lang.String valType)
Create a new
WSSBinarySecurityToken instance. |
protected |
WSSBinarySecurityToken(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
Create a new
WSSBinarySecurityToken instance. |
protected |
WSSBinarySecurityToken(org.w3c.dom.Element element)
Create a new
WSSBinarySecurityToken instance from the given XML element. |
protected |
WSSBinarySecurityToken(org.w3c.dom.Element element, java.lang.String systemId)
Create a new
WSSBinarySecurityToken instance from the given XML element. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEncodingType()
Returns the encoding type attribute in this element or the default encoding type if not specified.
|
abstract java.lang.Object |
getToken()
Get the token contents.
|
oracle.security.xmlsec.util.QName |
getTokenName()
Returns the name of the Binary WSSecurity Token.
|
byte[] |
getValue()
Get the value of this token.
|
java.lang.String |
getValueType()
Returns the type of Binary WSSecurity Token.
|
abstract void |
setToken(java.lang.Object token)
Set the token contents.
|
void |
setValue(byte[] tokenValue)
Set the value of this token.
|
void |
setValueType(java.lang.String valueType)
Sets the type of Binary 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, waitgetNodeprotected static final java.lang.String DEFAULT_ENCODING_TYPE
protected WSSBinarySecurityToken(org.w3c.dom.Element element)
WSSBinarySecurityToken instance from the given XML element.element - A wsse:BinarySecurityToken element.
protected WSSBinarySecurityToken(org.w3c.dom.Element element,
java.lang.String systemId)
WSSBinarySecurityToken instance from the given XML element.element - A wsse:BinarySecurityToken element.systemId - The URI string system ID for this element.
protected WSSBinarySecurityToken(org.w3c.dom.Document owner,
java.lang.String valType)
WSSBinarySecurityToken instance.owner - A XML Document to be used as the owner document of this structure.valType - The QName indicating the value type.
protected WSSBinarySecurityToken(org.w3c.dom.Document owner,
java.lang.String valType,
java.lang.String encType)
WSSBinarySecurityToken instance.owner - A XML Document to be used as the owner document of this structure.valType - The QName indicating the value type.encType - The QName indicating the encoding type.public java.lang.String getValueType()
public void setValueType(java.lang.String valueType)
valueType - the value typepublic java.lang.String getEncodingType()
public void setValue(byte[] tokenValue)
Encoding will be performed during token creation.
tokenValue - The raw bytes representing the binary token value.public byte[] getValue()
Decoding will be performed on the binary security token value..
public abstract void setToken(java.lang.Object token)
This method will be implemented in the sub-classes.
token - The token object.
public abstract java.lang.Object getToken()
throws WSSException
This method will be implemented in the sub-classes.
getToken in interface WSSecurityTokenWSSExceptionpublic oracle.security.xmlsec.util.QName getTokenName()
getTokenName in interface WSSecurityToken