Class BinarySecurityToken
java.lang.Object
com.sun.xml.ws.security.opt.impl.keyinfo.BinarySecurityToken
- All Implemented Interfaces:
BinarySecurityToken
,Token
,SecurityElement
,SecurityElementWriter
,SecurityHeaderElement
public class BinarySecurityToken
extends Object
implements BinarySecurityToken, SecurityHeaderElement, SecurityElementWriter
- Author:
- [email protected]
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of BinarySecurityToken -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the local name of this header element.byte[]
returns base64 decoded value of the binary securt token value<T> T
readAsJAXB
(jakarta.xml.bind.Unmarshaller unmarshaller) marshalls the BST element into the XMLStreamBufferboolean
void
void
writeTo
(SOAPMessage saaj) void
writeTo
(OutputStream os) void
writeTo
(XMLStreamWriter streamWriter) writes the binary security token to the XMLStreamWritervoid
writeTo
(XMLStreamWriter streamWriter, HashMap props) writes the binary security token to the XMLStreamWritervoid
writeTo
(ContentHandler contentHandler, ErrorHandler errorHandler)
-
Constructor Details
-
BinarySecurityToken
Creates a new instance of BinarySecurityToken
-
-
Method Details
-
getValueType
- Specified by:
getValueType
in interfaceBinarySecurityToken
-
getEncodingType
- Specified by:
getEncodingType
in interfaceBinarySecurityToken
-
getId
- Specified by:
getId
in interfaceSecurityElement
- Specified by:
getId
in interfaceToken
- Returns:
- id
-
setId
- Specified by:
setId
in interfaceSecurityElement
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceSecurityElement
- Returns:
- namespace uri of the security header element.
-
getLocalPart
Description copied from interface:SecurityElement
Gets the local name of this header element.- Specified by:
getLocalPart
in interfaceSecurityElement
- Returns:
- this string must be interned.
-
readHeader
marshalls the BST element into the XMLStreamBuffer- Specified by:
readHeader
in interfaceSecurityElement
- Returns:
- XMLStreamReader
- Throws:
XMLStreamException
-
readAsJAXB
public <T> T readAsJAXB(jakarta.xml.bind.Unmarshaller unmarshaller) -
writeTo
writes the binary security token to the XMLStreamWriter- Specified by:
writeTo
in interfaceSecurityElementWriter
- Parameters:
streamWriter
- XMLStreamWriter- Throws:
XMLStreamException
- if the operation fails for some reason. This leaves the writer to an undefined state.
-
writeTo
- Throws:
SOAPException
-
writeTo
-
getTokenValue
public byte[] getTokenValue()returns base64 decoded value of the binary securt token value- Specified by:
getTokenValue
in interfaceBinarySecurityToken
- Returns:
- byte[]
-
writeTo
- Specified by:
writeTo
in interfaceSecurityElementWriter
-
refersToSecHdrWithId
- Specified by:
refersToSecHdrWithId
in interfaceSecurityHeaderElement
-
getCertificate
-
writeTo
writes the binary security token to the XMLStreamWriter- Specified by:
writeTo
in interfaceSecurityElementWriter
- Parameters:
streamWriter
- javax.xml.stream.XMLStreamWriterprops
- HashMap- Throws:
XMLStreamException
-