public class BinarySecurityToken extends Object implements BinarySecurityToken, SecurityHeaderElement, SecurityElementWriter
| Constructor and Description |
|---|
BinarySecurityToken(BinarySecurityTokenType token,
com.sun.xml.ws.api.SOAPVersion sv)
Creates a new instance of BinarySecurityToken
|
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate() |
String |
getEncodingType() |
String |
getId() |
String |
getLocalPart()
Gets the local name of this header element.
|
String |
getNamespaceURI() |
byte[] |
getTokenValue()
returns base64 decoded value of the binary securt token value
|
String |
getValueType() |
<T> T |
readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge) |
<T> T |
readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge,
com.sun.xml.bind.api.BridgeContext context) |
<T> T |
readAsJAXB(Unmarshaller unmarshaller) |
XMLStreamReader |
readHeader()
marshalls the BST element into the XMLStreamBuffer
|
boolean |
refersToSecHdrWithId(String id) |
void |
setId(String id) |
void |
writeTo(ContentHandler contentHandler,
ErrorHandler errorHandler) |
void |
writeTo(OutputStream os) |
void |
writeTo(SOAPMessage saaj) |
void |
writeTo(XMLStreamWriter streamWriter)
writes the binary security token to the XMLStreamWriter
|
void |
writeTo(XMLStreamWriter streamWriter,
HashMap props)
writes the binary security token to the XMLStreamWriter
|
public BinarySecurityToken(BinarySecurityTokenType token, com.sun.xml.ws.api.SOAPVersion sv)
public String getValueType()
getValueType in interface BinarySecurityTokenpublic String getEncodingType()
getEncodingType in interface BinarySecurityTokenpublic String getId()
getId in interface TokengetId in interface SecurityElementpublic void setId(String id)
setId in interface SecurityElement@NotNull public String getNamespaceURI()
getNamespaceURI in interface SecurityElement@NotNull public String getLocalPart()
SecurityElementgetLocalPart in interface SecurityElementpublic XMLStreamReader readHeader() throws XMLStreamException
readHeader in interface SecurityElementXMLStreamExceptionpublic <T> T readAsJAXB(Unmarshaller unmarshaller) throws JAXBException
JAXBExceptionpublic <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge,
com.sun.xml.bind.api.BridgeContext context)
throws JAXBException
JAXBExceptionpublic <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)
throws JAXBException
JAXBExceptionpublic void writeTo(XMLStreamWriter streamWriter) throws XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - XMLStreamWriterXMLStreamExceptionpublic void writeTo(SOAPMessage saaj) throws SOAPException
SOAPExceptionpublic void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException
SAXExceptionpublic byte[] getTokenValue()
getTokenValue in interface BinarySecurityTokenpublic void writeTo(OutputStream os)
writeTo in interface SecurityElementWriterpublic boolean refersToSecHdrWithId(String id)
refersToSecHdrWithId in interface SecurityHeaderElementpublic X509Certificate getCertificate()
public void writeTo(XMLStreamWriter streamWriter, HashMap props) throws XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - javax.xml.stream.XMLStreamWriterprops - HashMapXMLStreamExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.