|
Oracle Security Developer Tools Web Services Security Java API Reference 10g (10.1.4.0.1) B28177-01 |
|||||||||
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.WSSBinarySecurityToken
oracle.security.xmlsec.wss.x509.X509BinarySecurityToken
This class represents a WSS Binary Security Token of type X509 certificate.
Note: Certificate Path (#X509PKIPathv1) and Set of Certificates and CRLs (#PKCS7) Token ValueTypes are not supported in this release.
Field Summary |
Fields inherited from class oracle.security.xmlsec.wss.WSSBinarySecurityToken |
DEFAULT_ENCODING_TYPE |
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
node, systemId |
Constructor Summary | |
X509BinarySecurityToken(org.w3c.dom.Document owner) Create a new X509BinarySecurityToken instance. |
|
X509BinarySecurityToken(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType) Create a new X509BinarySecurityToken instance. |
|
X509BinarySecurityToken(org.w3c.dom.Element x509BSTElement) Create a new X509BinarySecurityToken instance from the given XML element. |
|
X509BinarySecurityToken(org.w3c.dom.Element x509BSTElement, java.lang.String systemId) Create a new X509BinarySecurityToken instance from the given XML element. |
Method Summary | |
boolean |
equals(oracle.security.crypto.cert.X509 x509Cert) Checks if the X509 certificate stored in this structure is the same as the given one. |
oracle.security.crypto.core.PublicKey |
getPublicKey() Returns the Public Key contained in the X.509 Certificate Token of ValueType #X509v3 . |
java.lang.Object |
getToken() Get the token contents. |
oracle.security.crypto.cert.X509 |
getX509Certificate() Returns the Public Key contained in the X.509 Certificate Token of ValueType #X509v3 . |
void |
setToken(java.lang.Object x509Cert) Set the token contents. |
Methods inherited from class oracle.security.xmlsec.wss.WSSBinarySecurityToken |
getEncodingType, getTokenName, getValue, getValueType, setValue |
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, 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.WSSecurityToken |
getNode |
Constructor Detail |
public X509BinarySecurityToken(org.w3c.dom.Element x509BSTElement)
X509BinarySecurityToken
instance from the given XML element.x509BSTElement
- A X.509 Certificate token element.public X509BinarySecurityToken(org.w3c.dom.Element x509BSTElement, java.lang.String systemId)
X509BinarySecurityToken
instance from the given XML element.x509BSTElement
- A X.509 Certificate token element.systemId
- The URI string system ID for this element.public X509BinarySecurityToken(org.w3c.dom.Document owner)
X509BinarySecurityToken
instance.owner
- A XML Document to be used as the owner document of this structure.public X509BinarySecurityToken(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
X509BinarySecurityToken
instance.owner
- A XML Document to be used as the owner document of this structure.valType
- The token value type.encType
- The token encoding type.Method Detail |
public void setToken(java.lang.Object x509Cert)
Converts a oracle.security.crypto.cert.x509 object into a X.509v3 certificate token and calls WSSBinarySecurityContents.setValue().
setToken
in class WSSBinarySecurityToken
x509Cert
- The X.509 certificate.public java.lang.Object getToken() throws WSSException
Returns a oracle.security.crypto.cert.x509 object from the X.509v3 certificate token by calling WSSBinarySecurityContents.getValue().
getToken
in interface WSSecurityToken
getToken
in class WSSBinarySecurityToken
WSSException
public oracle.security.crypto.cert.X509 getX509Certificate() throws WSSException
#X509v3
.X509
certificate or null
.WSSException
public oracle.security.crypto.core.PublicKey getPublicKey() throws WSSException
#X509v3
.PublicKey
certificate or null
.WSSException
public boolean equals(oracle.security.crypto.cert.X509 x509Cert)
x509Cert
- The certificate token to compare.true
if the X.509 encodings match or false
otherwise.
|
Oracle Security Developer Tools Web Services Security Java API Reference 10g (10.1.4.0.1) B28177-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |