iaik.xkms
Interface PrototypeKeyBinding

All Superinterfaces:
XKeyBindingAbstractType

public interface PrototypeKeyBinding
extends XKeyBindingAbstractType

A template used to specify the key binding parameters requested in a registration request.

[280] The <PrototypeKeyBinding> element is derived from the XKeyBindingAbstractType. It is used to specify the values of elements that a client requests be present in the keybinding resulting from a registration request.

[281] All fields in a <PrototypeKeyBinding> element are advisory and MAY be ignored by the service. For example a client might request registration under the policy identifier http://example.com/policy/high-security corresponding to a high assurance issuance policy but the returned key binding might specify the policy identifier http://example.com/policy/low-security corresponding to a low assurance issuance policy instead.

[282] The <PrototypeKeyBinding> element extends the XKeyBindingAbstractType with the following additional elements:
<ValidityInterval> [Optional]
The suggested time interval for which the key binding relationship is valid.
<RevocationCodeIdentifier> [Optional]
Specifies a value to be used to validate a RevocationCode value in a subsequent Revocation request.


Method Summary
 byte[] getRevocationCodeIdentifier()
          Gets the revocation code identifier.
 Calendar[] getValidityInterval()
          Gets the validity interval of this PrototypeKeyBinding.
 void setRevocationCodeIdentifier(Key key)
          Sets the revocation code identifier according to the given key.
 void setRevocationCodeIdentifier(String passphrase)
          Sets the revocation code identifier according to the key derived from the given passphrase.
 void setValidityInterval(Calendar notBefore, Calendar notOnOrAfter)
          Sets the validity interval of this PrototypeKeyBinding.
 
Methods inherited from interface XKeyBindingAbstractType
addKeyUsage, addUseKeyWith, addUseKeyWith, getId, getKeyInfo, getKeyUsage, getUseKeyWithList, getUseKeyWithSize, removeKeyUsage, setId, setKeyInfo
 

Method Detail

setRevocationCodeIdentifier

void setRevocationCodeIdentifier(Key key)
Sets the revocation code identifier according to the given key.

Parameters:
key - key to use

setRevocationCodeIdentifier

void setRevocationCodeIdentifier(String passphrase)
Sets the revocation code identifier according to the key derived from the given passphrase.

Parameters:
passphrase - passphrase to derive the key from

getRevocationCodeIdentifier

byte[] getRevocationCodeIdentifier()
Gets the revocation code identifier.

Returns:
revovation code identifier

setValidityInterval

void setValidityInterval(Calendar notBefore,
                         Calendar notOnOrAfter)
Sets the validity interval of this PrototypeKeyBinding.

Parameters:
notBefore - start of the validity interval
notOnOrAfter - end of the validty interval

getValidityInterval

Calendar[] getValidityInterval()
Gets the validity interval of this PrototypeKeyBinding.

The first element is a Calendar object for NotBefore, the second for NotOnOrAfter. If the values are not set, the array contains null.

Returns:
a Calendar[] specifying the validity interval.