public class Pbes2HsAkwAlgorithm extends Object implements KeyAlgorithm<Password,Password>
| Modifier | Constructor and Description |
|---|---|
|
Pbes2HsAkwAlgorithm(int keyBitLength) |
protected |
Pbes2HsAkwAlgorithm(int hashBitLength,
KeyAlgorithm<SecretKey,SecretKey> wrapAlg) |
| Modifier and Type | Method and Description |
|---|---|
static int |
assertIterations(int iterations) |
protected SecretKey |
deriveKey(SecretKeyFactory factory,
char[] password,
byte[] rfcSalt,
int iterations) |
boolean |
equals(Object obj) |
protected SecretKey |
generateCek(KeyRequest<?> request) |
protected byte[] |
generateInputSalt(KeyRequest<?> request) |
SecretKey |
getDecryptionKey(DecryptionKeyRequest<Password> request) |
KeyResult |
getEncryptionKey(KeyRequest<Password> request) |
String |
getId() |
protected String |
getJcaName(Request<?> request) |
int |
hashCode() |
protected JcaTemplate |
jca() |
protected JcaTemplate |
jca(Request<?> request) |
protected byte[] |
toRfcSalt(byte[] inputSalt) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdpublic Pbes2HsAkwAlgorithm(int keyBitLength)
protected Pbes2HsAkwAlgorithm(int hashBitLength,
KeyAlgorithm<SecretKey,SecretKey> wrapAlg)
public static int assertIterations(int iterations)
protected SecretKey deriveKey(SecretKeyFactory factory, char[] password, byte[] rfcSalt, int iterations) throws Exception
Exceptionprotected byte[] generateInputSalt(KeyRequest<?> request)
protected byte[] toRfcSalt(byte[] inputSalt)
public KeyResult getEncryptionKey(KeyRequest<Password> request) throws SecurityException
getEncryptionKey in interface KeyAlgorithm<Password,Password>SecurityExceptionpublic SecretKey getDecryptionKey(DecryptionKeyRequest<Password> request) throws SecurityException
getDecryptionKey in interface KeyAlgorithm<Password,Password>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.