public final class RevokeRequest extends Request
Constructor and Description |
---|
RevokeRequest(org.w3c.dom.Document owner)
Creates a new
RevokeRequest instance. |
RevokeRequest(org.w3c.dom.Document owner, RevokeKeyBinding keyInfo)
Creates a new
RevokeRequest instance. |
RevokeRequest(org.w3c.dom.Document owner, java.lang.String systemId)
Creates a new
RevokeRequest instance. |
RevokeRequest(org.w3c.dom.Element element)
Creates a new
RevokeRequest instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication()
Returns the
xkms:Authentication child element for this message or null if none is set. |
RevokeKeyBinding |
getKeyBinding()
Returns the
xkms:PrototypeKeyBinding child element for this message or null if none is set. |
byte[] |
getRevocationCode()
Returns the
xkms:RevocationCode child element for this message or null if none is set. |
void |
setAuthentication(Authentication authInfo)
Sets the
xkms:Authentication child element for this message. |
void |
setKeyBinding(RevokeKeyBinding keyInfo)
Sets the
xkms:RevokeKeyBinding child element for this message. |
void |
setRevocationCode(byte[] revocationCode)
Sets the
xkms:RevocationCode child element for this message. |
addRespondWith, addResponseMechanism, getOriginalRequestID, getPendingNotificationIdentifier, getPendingNotificationMechanism, getRespondWiths, getResponseLimit, getResponseMechanisms, setOriginalRequestID, setPendingNotification, setResponseLimit
addMessageExtension, clearSignature, getId, getMessageExtensions, getNonce, getOpaqueClientData, getService, getSignature, insertChild, insertChild, removeChildren, setId, setNonce, setOpaqueClientData, setService, setSignature
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public RevokeRequest(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
RevokeRequest
instance from the given Element node.element
- An Element node in the XML document that conforms to the X-KRSS RevokeRequest schema.org.w3c.dom.DOMException
public RevokeRequest(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
RevokeRequest
instance.owner
- The owner document of the new RevokeRequest
.org.w3c.dom.DOMException
public RevokeRequest(org.w3c.dom.Document owner, java.lang.String systemId) throws org.w3c.dom.DOMException
RevokeRequest
instance.owner
- The owner document of the new RevokeRequest
.systemId
- The URI string system ID for the Message
..org.w3c.dom.DOMException
public RevokeRequest(org.w3c.dom.Document owner, RevokeKeyBinding keyInfo) throws org.w3c.dom.DOMException
RevokeRequest
instance.owner
- The owner document of the new RevokeRequest
.keyInfo
- The xkms:RevokeKeyBinding
carried by this RevokeRequest
message.org.w3c.dom.DOMException
public void setKeyBinding(RevokeKeyBinding keyInfo) throws org.w3c.dom.DOMException
xkms:RevokeKeyBinding
child element for this message.keyInfo
- The xkms:RevokeKeyBinding
carried by this RevokeRequest
message.org.w3c.dom.DOMException
public RevokeKeyBinding getKeyBinding() throws org.w3c.dom.DOMException
xkms:PrototypeKeyBinding
child element for this message or null
if none is set.xkms:RevokeKeyBinding
carried by this RevokeRequest
message.org.w3c.dom.DOMException
public void setAuthentication(Authentication authInfo) throws org.w3c.dom.DOMException
xkms:Authentication
child element for this message.
Note: This will remove the xkms:RevocationCode element if present.
authInfo
- The xkms:Authentication
carried by this RevokeRequest
message.org.w3c.dom.DOMException
public Authentication getAuthentication()
xkms:Authentication
child element for this message or null
if none is set.xkms:Authentication
carried by this RevokeRequest
message.public void setRevocationCode(byte[] revocationCode) throws org.w3c.dom.DOMException
xkms:RevocationCode
child element for this message.
Note: This will remove the xkms:Authentication element if present.
revocationCode
- The xkms:RvocationCode
bytes carried by this message, which will be Base-64 encoded prior to setting the message content.org.w3c.dom.DOMException
public byte[] getRevocationCode()
xkms:RevocationCode
child element for this message or null
if none is set.xkms:RevocationCode
carried by this RevokeRequest
message.