iaik.xkms
Interface RecoverResult

All Superinterfaces:
XKRSSResult, XMessageAbstractType, XResultType

public interface RecoverResult
extends XKRSSResult

Response of a RecoverRequest.

[325] The recover response message contains a <RecoverResult> element that contains the following elements:
<KeyBinding> [Any Number]
May be present to advertise a change to the status of the key binding made as a result of the key recovery.
<XPrivateKey> [Optional]
The values of the private key parameters of the recovered private key.


Method Summary
 boolean hasPrivateKeyBlock()
          Determins whether this result carries an encrypted private key.
 void setPrivateKey(XPrivateKey key, Key cryptkey)
          Prepares an encrypted private key block to be added to this result during marshalling.
 
Methods inherited from interface XKRSSResult
addKeyBinding, getKeyBinding
 
Methods inherited from interface XResultType
addStandardReplyData, getRequestId, getRequestSignatureValue, getResultMajor, getResultMinor, setRequestId, setRequestSignatureValue, setResultMajor, setResultMinor
 
Methods inherited from interface XMessageAbstractType
addDefaults, addOpaqueClientData, clearOpaqueClientData, getId, getMessageName, getNonce, getOpaqueClientData, getService, getSignatureCertificate, hasSignature, isValid, setId, setNonce, setService, setSignature, toString
 

Method Detail

hasPrivateKeyBlock

boolean hasPrivateKeyBlock()
Determins whether this result carries an encrypted private key.

Returns:
true if this result carries an encrypted private key, false otherwise

setPrivateKey

void setPrivateKey(XPrivateKey key,
                   Key cryptkey)
Prepares an encrypted private key block to be added to this result during marshalling. During marshalling the given key will be encrypted using the given cryptkey and the result added to the message.

Parameters:
key - private key to add to the message
cryptkey - key to encrypt the private key with