Class KeyIdentifier
java.lang.Object
com.sun.xml.ws.security.secext10.AttributedString
com.sun.xml.ws.security.secext10.EncodedString
com.sun.xml.ws.security.secext10.KeyIdentifierType
com.sun.xml.ws.security.opt.impl.reference.KeyIdentifier
- All Implemented Interfaces:
KeyIdentifier,Reference,SecurityElement,SecurityElementWriter,SecurityHeaderElement
public class KeyIdentifier
extends KeyIdentifierType
implements KeyIdentifier, SecurityHeaderElement, SecurityElementWriter
- Author:
- Ashutosh.Shahi@sun.com
-
Field Summary
Fields inherited from class com.sun.xml.ws.security.secext10.KeyIdentifierType
valueTypeFields inherited from class com.sun.xml.ws.security.secext10.EncodedString
encodingTypeFields inherited from class com.sun.xml.ws.security.secext10.AttributedString
id, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String nsUri, String localName) getAttribute(QName name) Gets the value of the encodingType property.getId()Gets the value of the id property.Gets the local name of this header element.getType()Gets the value of the valueType property.Reads the header as aXMLStreamReader.booleanvoidsetEncodingType(String value) Sets the value of the encodingType property.voidSets the value of the id property.voidsetReferenceValue(String referenceValue) voidsetValueType(String valueType) Sets the value of the valueType property.voidupdateReferenceValue(byte[] kerberosToken) voidvoidwriteTo(OutputStream os) voidwriteTo(XMLStreamWriter streamWriter) Writes out the header.voidwriteTo(XMLStreamWriter streamWriter, HashMap props) Methods inherited from class com.sun.xml.ws.security.secext10.AttributedString
getOtherAttributes, getValue, setValue
-
Constructor Details
-
KeyIdentifier
Creates a new instance of KeyIdentifier
-
-
Method Details
-
getValueType
Description copied from class:KeyIdentifierTypeGets the value of the valueType property.- Specified by:
getValueTypein interfaceKeyIdentifier- Overrides:
getValueTypein classKeyIdentifierType- Returns:
- the valueType attribute for KeyIdentifier
-
setValueType
Description copied from class:KeyIdentifierTypeSets the value of the valueType property.- Specified by:
setValueTypein interfaceKeyIdentifier- Overrides:
setValueTypein classKeyIdentifierType- Parameters:
valueType- the valueType attribute for KeyIdentifier
-
getEncodingType
Description copied from class:EncodedStringGets the value of the encodingType property.- Specified by:
getEncodingTypein interfaceKeyIdentifier- Overrides:
getEncodingTypein classEncodedString- Returns:
- the encodingType attribute
-
setEncodingType
Description copied from class:EncodedStringSets the value of the encodingType property.- Specified by:
setEncodingTypein interfaceKeyIdentifier- Overrides:
setEncodingTypein classEncodedString- Parameters:
value- the encodingType attribute
-
getReferenceValue
- Specified by:
getReferenceValuein interfaceKeyIdentifier- Returns:
- the referenced value by this key identifier
-
setReferenceValue
- Specified by:
setReferenceValuein interfaceKeyIdentifier- Parameters:
referenceValue- the referenced value by this keyIdentifier
-
getType
-
getId
Description copied from class:AttributedStringGets the value of the id property.- Specified by:
getIdin interfaceSecurityElement- Overrides:
getIdin classAttributedString- Returns:
- id attribute
-
setId
Description copied from class:AttributedStringSets the value of the id property.- Specified by:
setIdin interfaceSecurityElement- Overrides:
setIdin classAttributedString- Parameters:
id- allowed object isString
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceSecurityElement- Returns:
- namespace uri of Keyidentifier.
-
getLocalPart
Gets the local name of this header element.- Specified by:
getLocalPartin interfaceSecurityElement- Returns:
- this string must be interned.
-
getAttribute
-
getAttribute
-
readHeader
Description copied from interface:SecurityElementReads the header as aXMLStreamReader.The returned parser points at the start element of this header. (IOW,
XMLStreamReader.getEventType()would returnXMLStreamConstants.START_ELEMENT.Performance Expectation
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.
- Specified by:
readHeaderin interfaceSecurityElement- Returns:
- must not null.
- Throws:
XMLStreamException
-
writeTo
Writes out the header.- Specified by:
writeToin interfaceSecurityElementWriter- Throws:
XMLStreamException- if the operation fails for some reason. This leaves the writer to an undefined state.
-
writeTo
- Specified by:
writeToin interfaceSecurityElementWriter- Throws:
XMLStreamException
-
writeTo
- Specified by:
writeToin interfaceSecurityElementWriter
-
updateReferenceValue
- Throws:
XWSSecurityException
-
updateReferenceValue
- Throws:
XWSSecurityException
-
refersToSecHdrWithId
- Specified by:
refersToSecHdrWithIdin interfaceSecurityHeaderElement
-