public class SecurityContextToken13 extends SecurityContextTokenType implements SecurityHeaderElement, SecurityElementWriter, SecurityContextToken
| Modifier and Type | Field and Description |
|---|---|
String |
SECURITY_CONTEXT_TOKEN |
any, id| Constructor and Description |
|---|
SecurityContextToken13(SecurityContextTokenType sTokenType,
com.sun.xml.ws.api.SOAPVersion sv) |
SecurityContextToken13(URI identifier,
String instance,
String wsuId,
com.sun.xml.ws.api.SOAPVersion sv) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
canonicalize(String algorithm,
List<AttributeNS> namespaceDecls) |
String |
getAttribute(QName name) |
String |
getAttribute(String nsUri,
String localName) |
List |
getExtElements() |
URI |
getIdentifier() |
String |
getInstance() |
String |
getLocalPart()
Gets the local name of this header element.
|
String |
getNamespaceURI() |
Object |
getTokenValue() |
String |
getType() |
String |
getWsuId() |
boolean |
isCanonicalized() |
XMLStreamReader |
readHeader()
Reads the header as a
XMLStreamReader. |
boolean |
refersToSecHdrWithId(String id) |
void |
setIdentifier(URI identifier) |
void |
setInstance(String instance) |
void |
setWsuId(String wsuId) |
void |
writeTo(OutputStream os)
writes the SecurityContextToken to the OutputStream
|
void |
writeTo(XMLStreamWriter streamWriter)
writes the SecurityContextToken to the XMLStreamWriter
|
void |
writeTo(XMLStreamWriter streamWriter,
HashMap props)
writes the SecurityContextToken to the XMLStreamWriter
|
getAny, getId, getOtherAttributes, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, setIdpublic final String SECURITY_CONTEXT_TOKEN
public SecurityContextToken13(URI identifier, String instance, String wsuId, com.sun.xml.ws.api.SOAPVersion sv)
public SecurityContextToken13(SecurityContextTokenType sTokenType, com.sun.xml.ws.api.SOAPVersion sv)
public URI getIdentifier()
getIdentifier in interface SecurityContextTokenpublic void setIdentifier(URI identifier)
public String getInstance()
getInstance in interface SecurityContextTokenpublic void setInstance(String instance)
public void setWsuId(String wsuId)
public String getWsuId()
getWsuId in interface SecurityContextTokenpublic Object getTokenValue()
getTokenValue in interface Tokenpublic List getExtElements()
getExtElements in interface SecurityContextTokenpublic String getNamespaceURI()
getNamespaceURI in interface SecurityElementpublic String getLocalPart()
SecurityElementgetLocalPart in interface SecurityElementpublic XMLStreamReader readHeader() throws XMLStreamException
SecurityElementXMLStreamReader.
The returned parser points at the start element of this header.
(IOW, XMLStreamReader.getEventType() would return
XMLStreamConstants.START_ELEMENT.
For some Header implementations, this operation is a non-trivial operation. Therefore, use of this method is discouraged unless the caller is interested in reading the whole header.
Similarly, if the caller wants to use this method only to do
the API conversion (such as simply firing SAX events from
XMLStreamReader), then the JAX-WS team requests
that you talk to us.
Messages that come from tranport usually provides a reasonably efficient implementation of this method.
readHeader in interface SecurityElementXMLStreamExceptionpublic void writeTo(OutputStream os)
writeTo in interface SecurityElementWriteros - OutputStreampublic void writeTo(XMLStreamWriter streamWriter) throws XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - javax.xml.stream.XMLStreamWriterXMLStreamExceptionpublic byte[] canonicalize(String algorithm, List<AttributeNS> namespaceDecls)
public boolean isCanonicalized()
public boolean refersToSecHdrWithId(String id)
refersToSecHdrWithId in interface SecurityHeaderElementpublic void writeTo(XMLStreamWriter streamWriter, HashMap props) throws XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - props - XMLStreamExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.