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(com.sun.xml.ws.security.secext10.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(com.sun.xml.bind.api.Bridge<T> bridge) <T> TreadAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge, com.sun.xml.bind.api.BridgeContext context) <T> TreadAsJAXB(javax.xml.bind.Unmarshaller unmarshaller) marshalls the BST element into the XMLStreamBufferbooleanvoidvoidwriteTo(OutputStream os) voidwriteTo(javax.xml.soap.SOAPMessage saaj) 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
public BinarySecurityToken(com.sun.xml.ws.security.secext10.BinarySecurityTokenType token, com.sun.xml.ws.api.SOAPVersion sv) 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(javax.xml.bind.Unmarshaller unmarshaller) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
readAsJAXB
public <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge, com.sun.xml.bind.api.BridgeContext context) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
readAsJAXB
public <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
writeTo
writes the binary security token to the XMLStreamWriter- Specified by:
writeToin interfaceSecurityElementWriter- Parameters:
streamWriter- XMLStreamWriter- Throws:
XMLStreamException
-
writeTo
public void writeTo(javax.xml.soap.SOAPMessage saaj) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
writeTo
- Throws:
SAXException
-
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- Returns:
-
getCertificate
-
writeTo
writes the binary security token to the XMLStreamWriter- Specified by:
writeToin interfaceSecurityElementWriter- Parameters:
streamWriter- javax.xml.stream.XMLStreamWriterprops- HashMap- Throws:
XMLStreamException
-