public class DefaultRsaKeyAlgorithm extends Object implements KeyAlgorithm<PublicKey,PrivateKey>
| Constructor and Description |
|---|
DefaultRsaKeyAlgorithm(String id,
String jcaTransformationString) |
DefaultRsaKeyAlgorithm(String id,
String jcaTransformationString,
AlgorithmParameterSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected SecretKey |
generateCek(KeyRequest<?> request) |
SecretKey |
getDecryptionKey(DecryptionKeyRequest<PrivateKey> request) |
KeyResult |
getEncryptionKey(KeyRequest<PublicKey> request) |
String |
getId() |
protected String |
getJcaName(Request<?> request) |
int |
hashCode() |
protected JcaTemplate |
jca() |
protected JcaTemplate |
jca(Request<?> request) |
String |
toString() |
protected void |
validate(Key key,
boolean encryption) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdpublic DefaultRsaKeyAlgorithm(String id, String jcaTransformationString, AlgorithmParameterSpec spec)
protected void validate(Key key, boolean encryption)
public KeyResult getEncryptionKey(KeyRequest<PublicKey> request) throws SecurityException
getEncryptionKey in interface KeyAlgorithm<PublicKey,PrivateKey>SecurityExceptionpublic SecretKey getDecryptionKey(DecryptionKeyRequest<PrivateKey> request) throws SecurityException
getDecryptionKey in interface KeyAlgorithm<PublicKey,PrivateKey>SecurityExceptionpublic String getId()
getId in interface Identifiableprotected JcaTemplate jca()
protected JcaTemplate jca(Request<?> request)
protected SecretKey generateCek(KeyRequest<?> request)
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.