public class DerivedKey extends Object implements DerivedKeyToken, SecurityHeaderElement, SecurityElementWriter
| Constructor and Description |
|---|
DerivedKey(DerivedKeyTokenType dkt,
com.sun.xml.ws.api.SOAPVersion soapVersion,
String spVersion)
Creates a new instance of DerivedKey
|
DerivedKey(DerivedKeyTokenType dkt,
com.sun.xml.ws.api.SOAPVersion soapVersion,
String spVersion) |
DerivedKey(DerivedKeyTokenType dkt,
com.sun.xml.ws.api.SOAPVersion soapVersion,
String refId,
String spVersion) |
DerivedKey(DerivedKeyTokenType dkt,
com.sun.xml.ws.api.SOAPVersion soapVersion,
String refId,
String spVersion) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Gets the value of the algorithm property.
|
BigInteger |
getGeneration()
Gets the value of the generation property.
|
String |
getId()
Gets the value of the id property.
|
String |
getLabel()
Gets the value of the label property.
|
BigInteger |
getLength()
Gets the value of the length property.
|
String |
getLocalPart()
Gets the local name of this header element.
|
String |
getNamespaceURI() |
byte[] |
getNonce()
Gets the value of the nonce property.
|
BigInteger |
getOffset()
Gets the value of the offset property.
|
SecurityTokenReferenceType |
getSecurityTokenReference()
Gets the value of the securityTokenReference property.
|
XMLStreamReader |
readHeader()
Reads the header as a
XMLStreamReader. |
boolean |
refersToSecHdrWithId(String id)
checks whether this object refers to the object with the given id
|
void |
setAlgorithm(String value)
Sets the value of the algorithm property.
|
void |
setGeneration(BigInteger value)
Sets the value of the generation property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setLabel(String value)
Sets the value of the label property.
|
void |
setLength(BigInteger value)
Sets the value of the length property.
|
void |
setNonce(byte[] value)
Sets the value of the nonce property.
|
void |
setOffset(BigInteger value)
Sets the value of the offset property.
|
void |
setSecurityTokenReference(SecurityTokenReferenceType value)
Sets the value of the securityTokenReference property.
|
void |
writeTo(OutputStream os)
creates and writes the derived key token to the output stream
|
void |
writeTo(XMLStreamWriter streamWriter)
creates and writes the derived key token to the XMLStreamWriter
|
void |
writeTo(XMLStreamWriter streamWriter,
HashMap props)
writes the derived key to the XMLStreamWriter
|
public DerivedKey(DerivedKeyTokenType dkt, com.sun.xml.ws.api.SOAPVersion soapVersion, String spVersion)
public DerivedKey(DerivedKeyTokenType dkt, com.sun.xml.ws.api.SOAPVersion soapVersion, String refId, String spVersion)
public DerivedKey(DerivedKeyTokenType dkt, com.sun.xml.ws.api.SOAPVersion soapVersion, String spVersion)
public DerivedKey(DerivedKeyTokenType dkt, com.sun.xml.ws.api.SOAPVersion soapVersion, String refId, String spVersion)
public String getAlgorithm()
DerivedKeyTokengetAlgorithm in interface DerivedKeyTokenStringpublic BigInteger getGeneration()
DerivedKeyTokengetGeneration in interface DerivedKeyTokenBigIntegerpublic String getId()
DerivedKeyTokengetId in interface DerivedKeyTokengetId in interface SecurityElementStringpublic String getLabel()
DerivedKeyTokengetLabel in interface DerivedKeyTokenStringpublic BigInteger getLength()
DerivedKeyTokengetLength in interface DerivedKeyTokenBigIntegerpublic byte[] getNonce()
DerivedKeyTokengetNonce in interface DerivedKeyTokenpublic BigInteger getOffset()
DerivedKeyTokengetOffset in interface DerivedKeyTokenBigIntegerpublic SecurityTokenReferenceType getSecurityTokenReference()
DerivedKeyTokengetSecurityTokenReference in interface DerivedKeyTokenSecurityTokenReferenceTypepublic void setAlgorithm(String value)
DerivedKeyTokensetAlgorithm in interface DerivedKeyTokenvalue - allowed object is
Stringpublic void setGeneration(BigInteger value)
DerivedKeyTokensetGeneration in interface DerivedKeyTokenvalue - allowed object is
BigIntegerpublic void setId(String value)
DerivedKeyTokensetId in interface DerivedKeyTokensetId in interface SecurityElementvalue - allowed object is
Stringpublic void setLabel(String value)
DerivedKeyTokensetLabel in interface DerivedKeyTokenvalue - allowed object is
Stringpublic void setLength(BigInteger value)
DerivedKeyTokensetLength in interface DerivedKeyTokenvalue - allowed object is
BigIntegerpublic void setNonce(byte[] value)
DerivedKeyTokensetNonce in interface DerivedKeyTokenvalue - allowed object is
byte[]public void setOffset(BigInteger value)
DerivedKeyTokensetOffset in interface DerivedKeyTokenvalue - allowed object is
BigIntegerpublic void setSecurityTokenReference(SecurityTokenReferenceType value)
DerivedKeyTokensetSecurityTokenReference in interface DerivedKeyTokenvalue - allowed object is
SecurityTokenReferenceTypepublic 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 - XMLStreamExceptionpublic boolean refersToSecHdrWithId(String id)
refersToSecHdrWithId in interface SecurityHeaderElementid - Stringpublic void writeTo(XMLStreamWriter streamWriter, HashMap props) throws XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - props - XMLStreamExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.