|
Message Security Layer (MSL) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netflix.msl.keyx.KeyRequestData
com.netflix.msl.keyx.JsonWebKeyLadderExchange.RequestData
public static class JsonWebKeyLadderExchange.RequestData
JSON Web Key ladder key request data.
{
"#mandatory" : [ "mechanism" ],
"mechanism" : "enum(PSK|MGK|WRAP)",
"wrapdata" : "base64",
} where:
mechanism identifies the mechanism for wrapping and unwrapping the wrapping keywrapdata the Base64-encoded wrapping data for the previous wrapping key
| Field Summary | |
|---|---|
private static String |
KEY_MECHANISM
JSON key wrap key wrapping mechanism. |
private static String |
KEY_WRAPDATA
JSON key wrap data. |
private JsonWebKeyLadderExchange.Mechanism |
mechanism
Wrap key wrapping mechanism. |
private byte[] |
wrapdata
Wrap data. |
| Constructor Summary | |
|---|---|
JsonWebKeyLadderExchange.RequestData(JSONObject keyRequestJO)
Create a new JSON Web Key ladder key request data instance from the provided JSON object. |
|
JsonWebKeyLadderExchange.RequestData(JsonWebKeyLadderExchange.Mechanism mechanism,
byte[] wrapdata)
Create a new JSON Web Key ladder key request data instance with the specified mechanism and wrapping key data. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
protected JSONObject |
getKeydata()
|
JsonWebKeyLadderExchange.Mechanism |
getMechanism()
|
byte[] |
getWrapdata()
|
int |
hashCode()
|
| Methods inherited from class com.netflix.msl.keyx.KeyRequestData |
|---|
create, getKeyExchangeScheme, toJSONString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String KEY_MECHANISM
private static final String KEY_WRAPDATA
private final JsonWebKeyLadderExchange.Mechanism mechanism
private final byte[] wrapdata
| Constructor Detail |
|---|
public JsonWebKeyLadderExchange.RequestData(JsonWebKeyLadderExchange.Mechanism mechanism,
byte[] wrapdata)
Create a new JSON Web Key ladder key request data instance with the specified mechanism and wrapping key data.
Arguments not applicable to the specified mechanism are ignored.
mechanism - the wrap key wrapping mechanism.wrapdata - the wrap data for reconstructing the previous
wrapping key. May be null if the mechanism does not use the
previous wrapping key.
MslInternalException - if the mechanism requires wrap data and
the required argument is null.
public JsonWebKeyLadderExchange.RequestData(JSONObject keyRequestJO)
throws MslCryptoException,
MslKeyExchangeException,
MslEncodingException
keyRequestJO - the JSON object.
MslEncodingException - if there is an error parsing the JSON.
MslCryptoException - the wrapped key data cannot be verified
or decrypted, or the specified mechanism is not supported.
MslKeyExchangeException - if the specified mechanism is not
recognized or the wrap data is missing or invalid.| Method Detail |
|---|
public JsonWebKeyLadderExchange.Mechanism getMechanism()
public byte[] getWrapdata()
protected JSONObject getKeydata()
throws JSONException
getKeydata in class KeyRequestDataJSONException - if there was an error constructing the JSON
representation.public boolean equals(Object obj)
equals in class KeyRequestDatapublic int hashCode()
hashCode in class KeyRequestData
|
Message Security Layer (MSL) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||