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
Constructors Constructor Description BinarySecurityToken(com.sun.xml.ws.security.secext10.BinarySecurityTokenType token, com.sun.xml.ws.api.SOAPVersion sv)Creates a new instance of BinarySecurityToken
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificategetCertificate()StringgetEncodingType()StringgetId()StringgetLocalPart()Gets the local name of this header element.StringgetNamespaceURI()byte[]getTokenValue()returns base64 decoded value of the binary securt token valueStringgetValueType()<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)XMLStreamReaderreadHeader()marshalls the BST element into the XMLStreamBufferbooleanrefersToSecHdrWithId(String id)voidsetId(String id)voidwriteTo(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)
-
-
-
Method Detail
-
getValueType
public String getValueType()
- Specified by:
getValueTypein interfaceBinarySecurityToken
-
getEncodingType
public String getEncodingType()
- Specified by:
getEncodingTypein interfaceBinarySecurityToken
-
getId
public String getId()
- Specified by:
getIdin interfaceSecurityElement- Specified by:
getIdin interfaceToken- Returns:
- id
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceSecurityElement
-
getNamespaceURI
@NotNull public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceSecurityElement- Returns:
- namespace uri of the security header element.
-
getLocalPart
@NotNull public String getLocalPart()
Description copied from interface:SecurityElementGets the local name of this header element.- Specified by:
getLocalPartin interfaceSecurityElement- Returns:
- this string must be interned.
-
readHeader
public XMLStreamReader readHeader() throws XMLStreamException
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
public void writeTo(XMLStreamWriter streamWriter) throws XMLStreamException
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
public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException
- Throws:
SAXException
-
getTokenValue
public byte[] getTokenValue()
returns base64 decoded value of the binary securt token value- Specified by:
getTokenValuein interfaceBinarySecurityToken- Returns:
- byte[]
-
writeTo
public void writeTo(OutputStream os)
- Specified by:
writeToin interfaceSecurityElementWriter
-
refersToSecHdrWithId
public boolean refersToSecHdrWithId(String id)
- Specified by:
refersToSecHdrWithIdin interfaceSecurityHeaderElement- Returns:
-
getCertificate
public X509Certificate getCertificate()
-
writeTo
public void writeTo(XMLStreamWriter streamWriter, HashMap props) throws XMLStreamException
writes the binary security token to the XMLStreamWriter- Specified by:
writeToin interfaceSecurityElementWriter- Parameters:
streamWriter- javax.xml.stream.XMLStreamWriterprops- HashMap- Throws:
XMLStreamException
-
-