|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Authentication
Authentication for a key binding in an XKRSS request.
[277a] Clients and Responders MAY use dsig:KeyName for HMAC validation.
[291] The <Authentication> element is used to authenticate the key
binding element within an XKRSS request. This may be a <PrototypeKeyBinding>,
<ReissueKeyBinding>, <RevokeKeyBinding> or
<RecoverKeyBinding> element depending on the type of request.
<KeyBindingAuthentication> [Optional]
Authentication of the key binding by means of a signature using a previously
established key.
<NotBoundAuthentication> [Optional]
Plaintext data used to authenticate the XKRSS request that is not bound to
the key binding.
XKMS Responders do not have to support both of these optional elements in a request message.
| Method Summary | |
|---|---|
String |
getKeyBindingAuthenticationKeyName()
Gets key name of the KeyBindingAuthentication. |
String |
getNotBoundAuthenticationProtocol()
Gets protocol of the NotBoundAuthentication. |
byte[] |
getNotBoundAuthenticationValue()
Gets value of the NotBoundAuthentication. |
void |
setKeyBindingAuthentication(Key key,
String keyname)
Sets KeyBindingAuthentication according to the supplied values. |
void |
setKeyBindingAuthentication(String code,
String keyname)
Sets KeyBindingAuthentication according to the supplied passphrase. |
void |
setNotBoundAuthentication(String protocol,
byte[] value)
Sets NotBoundAuthentication according to the supplied values. |
| Method Detail |
|---|
void setKeyBindingAuthentication(Key key,
String keyname)
KeyBindingAuthentication according to the supplied values.
key - key to usekeyname - (optional) key name
void setKeyBindingAuthentication(String code,
String keyname)
KeyBindingAuthentication according to the supplied passphrase.
code - passphrase to derive the KeyBindingAuthentication fromkeyname - (optional) key nameString getKeyBindingAuthenticationKeyName()
KeyBindingAuthentication.
KeyBindingAuthentication
void setNotBoundAuthentication(String protocol,
byte[] value)
throws XKMSException
NotBoundAuthentication according to the supplied values.
protocol - protocol to use, specified by an URIvalue - value to use
XKMSException - if the protocol is not an URIString getNotBoundAuthenticationProtocol()
NotBoundAuthentication.
NotBoundAuthenticationbyte[] getNotBoundAuthenticationValue()
NotBoundAuthentication.
NotBoundAuthentication
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||