|
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.JsonWebKeyLadderExchange.JwkCryptoContext
public abstract static class JsonWebKeyLadderExchange.JwkCryptoContext
A specialized crypto context for wrapping and unwrapping JSON web keys.
Implementations of this class must add and remove padding to the JSON web key string representation's binary encoding for compatibility with the wrapping algorithm used.
Constructor Summary | |
---|---|
JsonWebKeyLadderExchange.JwkCryptoContext()
|
Method Summary | |
---|---|
byte[] |
decrypt(byte[] data)
Decrypts some data. |
byte[] |
encrypt(byte[] data)
Encrypts some data. |
byte[] |
sign(byte[] data)
Computes the signature for some data. |
boolean |
verify(byte[] data,
byte[] signature)
Verifies the signature for some data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.netflix.msl.crypto.ICryptoContext |
---|
unwrap, wrap |
Constructor Detail |
---|
public JsonWebKeyLadderExchange.JwkCryptoContext()
Method Detail |
---|
public byte[] encrypt(byte[] data) throws MslCryptoException
ICryptoContext
encrypt
in interface ICryptoContext
data
- the plaintext.
MslCryptoException
- if there is an error encrypting the data.public byte[] decrypt(byte[] data) throws MslCryptoException
ICryptoContext
decrypt
in interface ICryptoContext
data
- the ciphertext.
MslCryptoException
- if there is an error decrypting the data.public byte[] sign(byte[] data) throws MslCryptoException
ICryptoContext
sign
in interface ICryptoContext
data
- the data.
MslCryptoException
- if there is an error computing the signature.public boolean verify(byte[] data, byte[] signature) throws MslCryptoException
ICryptoContext
verify
in interface ICryptoContext
data
- the data.signature
- the signature.
MslCryptoException
- if there is an error verifying the signature.
|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |