public class DirectKeyAlgorithm extends Object implements KeyAlgorithm<SecretKey,SecretKey>
| Constructor and Description |
|---|
DirectKeyAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
getDecryptionKey(DecryptionKeyRequest<SecretKey> request) |
KeyResult |
getEncryptionKey(KeyRequest<SecretKey> request) |
String |
getId() |
public String getId()
getId in interface Identifiablepublic KeyResult getEncryptionKey(KeyRequest<SecretKey> request) throws SecurityException
getEncryptionKey in interface KeyAlgorithm<SecretKey,SecretKey>SecurityExceptionpublic SecretKey getDecryptionKey(DecryptionKeyRequest<SecretKey> request) throws SecurityException
getDecryptionKey in interface KeyAlgorithm<SecretKey,SecretKey>SecurityExceptionCopyright © 2014–2024 jsonwebtoken.io. All rights reserved.