public interface ILinkTokenCryptoKeyProvider
ILinkTokenCryptoKeyProvider
is implemented by partners to provide
logic to retrieve the crypto keys used in encryption/decryption of link
tokens.Modifier and Type | Method and Description |
---|---|
SimpleSignInCryptoKey<SecretKey> |
getDecryptionKey(IRequestContext requestContext,
String keyIdentifier)
Returns the key to use for decryption.
|
SimpleSignInCryptoKey<SecretKey> |
getEncryptionKey(IRequestContext requestContext)
Returns the key to use for encryption.
|
SimpleSignInCryptoKey<SecretKey> getEncryptionKey(IRequestContext requestContext) throws TokenException
requestContext
- IRequestContext
object which holds contextual
information required to choose the appropriate
encryption key to use for this request.TokenException
SimpleSignInCryptoKey<SecretKey> getDecryptionKey(IRequestContext requestContext, String keyIdentifier) throws TokenException
requestContext
- IRequestContext
object which holds additional
contextual information about the request.keyIdentifier
- An identifier which denotes the key used for encryption.
This identifier value is used along with requestContext
to pick the appropriate decryption key to use.TokenException