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:
- K.Venugopal@sun.com
-
Constructor Summary
ConstructorsConstructorDescriptionBinarySecurityToken(BinarySecurityTokenType token, com.sun.xml.ws.api.SOAPVersion sv) Creates 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> TreadAsJAXB(jakarta.xml.bind.Unmarshaller unmarshaller) <T> TreadAsJAXB(org.glassfish.jaxb.runtime.api.Bridge<T> bridge) <T> TreadAsJAXB(org.glassfish.jaxb.runtime.api.Bridge<T> bridge, org.glassfish.jaxb.runtime.api.BridgeContext context) marshalls the BST element into the XMLStreamBufferbooleanvoidvoidwriteTo(jakarta.xml.soap.SOAPMessage saaj) voidwriteTo(OutputStream os) voidwriteTo(XMLStreamWriter streamWriter) writes the binary security token to the XMLStreamWritervoidwriteTo(XMLStreamWriter streamWriter, HashMap props) writes the binary security token to the XMLStreamWritervoidwriteTo(ContentHandler contentHandler, ErrorHandler errorHandler)
-
Constructor Details
-
BinarySecurityToken
Creates a new instance of BinarySecurityToken
-
-
Method Details
-
getValueType
- Specified by:
getValueTypein interfaceBinarySecurityToken
-
getEncodingType
- Specified by:
getEncodingTypein interfaceBinarySecurityToken
-
getId
- Specified by:
getIdin interfaceSecurityElement- Specified by:
getIdin interfaceToken- Returns:
- id
-
setId
- Specified by:
setIdin interfaceSecurityElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceSecurityElement- Returns:
- namespace uri of the security header element.
-
getLocalPart
Description copied from interface:SecurityElementGets the local name of this header element.- Specified by:
getLocalPartin interfaceSecurityElement- Returns:
- this string must be interned.
-
readHeader
marshalls the BST element into the XMLStreamBuffer- Specified by:
readHeaderin interfaceSecurityElement- Returns:
- XMLStreamReader
- Throws:
XMLStreamException
-
readAsJAXB
public <T> T readAsJAXB(jakarta.xml.bind.Unmarshaller unmarshaller) -
readAsJAXB
public <T> T readAsJAXB(org.glassfish.jaxb.runtime.api.Bridge<T> bridge, org.glassfish.jaxb.runtime.api.BridgeContext context) -
readAsJAXB
public <T> T readAsJAXB(org.glassfish.jaxb.runtime.api.Bridge<T> bridge) -
writeTo
writes the binary security token to the XMLStreamWriter- Specified by:
writeToin interfaceSecurityElementWriter- Parameters:
streamWriter- XMLStreamWriter- Throws:
XMLStreamException- if the operation fails for some reason. This leaves the writer to an undefined state.
-
writeTo
public void writeTo(jakarta.xml.soap.SOAPMessage saaj) throws jakarta.xml.soap.SOAPException - Throws:
jakarta.xml.soap.SOAPException
-
writeTo
-
getTokenValue
public byte[] getTokenValue()returns base64 decoded value of the binary securt token value- Specified by:
getTokenValuein interfaceBinarySecurityToken- Returns:
- byte[]
-
writeTo
- Specified by:
writeToin interfaceSecurityElementWriter
-
refersToSecHdrWithId
- Specified by:
refersToSecHdrWithIdin interfaceSecurityHeaderElement
-
getCertificate
-
writeTo
writes the binary security token to the XMLStreamWriter- Specified by:
writeToin interfaceSecurityElementWriter- Parameters:
streamWriter- javax.xml.stream.XMLStreamWriterprops- HashMap- Throws:
XMLStreamException
-