Class BinarySecurityToken
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
FieldsModifier and TypeFieldDescriptionstatic final QNameTheBASE64BINARYencoding type indicates that the encoding name given corresponds to base64 encoding of a binary value.static final QNameTheHEXBINARYencoding type indicates that the encoding name given corresponds to Hex encoding of a binary value.static final QNameThePKCS7value type indicates that the value name given corresponds to a PKCS7 object.static final QNameThePKIPATHvalue type indicates that the value name given corresponds to a PKI Path object.static final QNameTheX509V3value type indicates that the value name given corresponds to a X509 Certificate. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
X509V3
TheX509V3value type indicates that the value name given corresponds to a X509 Certificate. -
PKCS7
ThePKCS7value type indicates that the value name given corresponds to a PKCS7 object. -
PKIPath
ThePKIPATHvalue type indicates that the value name given corresponds to a PKI Path object. -
BASE64BINARY
TheBASE64BINARYencoding type indicates that the encoding name given corresponds to base64 encoding of a binary value. -
HEXBINARY
TheHEXBINARYencoding type indicates that the encoding name given corresponds to Hex encoding of a binary value.
-
-
Constructor Details
-
BinarySecurityToken
Constructor.- Parameters:
token- Binary Security Token Element- Throws:
Exception- if token Element is not a valid binary security token
-
-
Method Details
-
getEncodingType
Gets encoding type for the token.- Returns:
- encoding type for the token.
-
getValueType
Gets value type for the token.- Returns:
- value type for the token.
-
getId
Gets id attribute for the tokens.- Returns:
- id attribute for the token.
-
getTokenValue
Gets value of the token.- Returns:
- value of the token.
-
toString
Returns a String representation of the token.
-