|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.identity.liberty.ws.common.wsse.BinarySecurityToken
The class BinarySecurityToken provides interface to parse and
create X.509 Security Token depicted by Web Service Security : X.509
Certificate Token Profile and Liberty ID-WSF Security Mechanisms
specifications.
The following schema fragment specifies the expected content within the BinarySecurityToken object.
<element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType/>
<complexType name="BinarySecurityTokenType">
<simpleContent>
<extension base="<http://schemas.xmlsoap.org/ws/2003/06/secext>EncodedString">
<attribute name="ValueType" type="{http://www.w3.org/2001/XMLSchema}QName" />
</extension>
</simpleContent>
</complexType>
<xsd:complexType name="EncodedString">
<xsd:simpleContent>
<xsd:extension base="wsse:AttributedString">
<xsd:attribute name="EncodingType" type="xsd:QName"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="AttributedString">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute ref="wsu:Id"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
| Field Summary | |
static javax.xml.namespace.QName |
BASE64BINARY
The BASE64BINARY encoding type indicates that
the encoding name given corresponds to base64 encoding of a binary value |
static javax.xml.namespace.QName |
HEXBINARY
The HEXBINARY encoding type indicates that
the encoding name given corresponds to Hex encoding of
a binary value |
static javax.xml.namespace.QName |
PKCS7
The PKCS7 value type indicates
that the value name given corresponds to a
PKCS7 object |
static javax.xml.namespace.QName |
PKIPath
The PKIPATH value type indicates
that the value name given corresponds to a
PKI Path object |
static javax.xml.namespace.QName |
X509V3
The X509V3 value type indicates that
the value name given corresponds to a X509 Certificate |
| Constructor Summary | |
BinarySecurityToken(org.w3c.dom.Element token)
Constructor |
|
BinarySecurityToken(java.lang.String value,
javax.xml.namespace.QName valueType,
javax.xml.namespace.QName encodingType)
Constructor |
|
| Method Summary | |
javax.xml.namespace.QName |
getEncodingType()
Gets encoding type for the token. |
java.lang.String |
getId()
Gets id attribute for the tokens. |
java.lang.String |
getTokenValue()
Gets value of the token. |
javax.xml.namespace.QName |
getValueType()
Gets value type for the token. |
java.lang.String |
toString()
Returns a String representation of the token |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final javax.xml.namespace.QName X509V3
X509V3 value type indicates that
the value name given corresponds to a X509 Certificatepublic static final javax.xml.namespace.QName PKCS7
PKCS7 value type indicates
that the value name given corresponds to a
PKCS7 objectpublic static final javax.xml.namespace.QName PKIPath
PKIPATH value type indicates
that the value name given corresponds to a
PKI Path objectpublic static final javax.xml.namespace.QName BASE64BINARY
BASE64BINARY encoding type indicates that
the encoding name given corresponds to base64 encoding of a binary valuepublic static final javax.xml.namespace.QName HEXBINARY
HEXBINARY encoding type indicates that
the encoding name given corresponds to Hex encoding of
a binary value| Constructor Detail |
public BinarySecurityToken(java.lang.String value,
javax.xml.namespace.QName valueType,
javax.xml.namespace.QName encodingType)
throws java.lang.Exception
value - the value must be the specified valueType
and encoded in the specified encodingType.valueType - type of the valueencodingType - encoding type of the valuejava.lang.Exception - if any input parameter is null
public BinarySecurityToken(org.w3c.dom.Element token)
throws java.lang.Exception
token - Binary Security Token Elementjava.lang.Exception - if token Element is not a valid binary
security token| Method Detail |
public javax.xml.namespace.QName getEncodingType()
public javax.xml.namespace.QName getValueType()
public java.lang.String getId()
public java.lang.String getTokenValue()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||