| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private int | |
| private final int | |
| private final long | |
| private final int | |
| private AlgorithmParameterSpec | |
| private SecureRandom | |
| private BigInteger | |
| private final Token |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public KeyPair | generateKeyPair()
Implements abstract java. Generates a key pair. |
| public void | initialize(int keySize, SecureRandom random)
Implements abstract java. Initializes the key pair generator for a certain keysize, using the default parameter set. |
| public void | initialize(AlgorithmParameterSpec params, SecureRandom random)
Overrides java. Initializes the key pair generator using the specified parameter set and user-provided source of randomness. |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| keySize | back to summary |
|---|---|
| private int keySize | |
| maxKeySize | back to summary |
|---|---|
| private final int maxKeySize | |
| mechanism | back to summary |
|---|---|
| private final long mechanism | |
| minKeySize | back to summary |
|---|---|
| private final int minKeySize | |
| params | back to summary |
|---|---|
| private AlgorithmParameterSpec params | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| rsaPublicExponent | back to summary |
|---|---|
| private BigInteger rsaPublicExponent | |
| token | back to summary |
|---|---|
| private final Token token | |
| P11KeyPairGenerator | back to summary |
|---|---|
| pack-priv P11KeyPairGenerator(Token token, String algorithm, long mechanism) throws PKCS11Exception | |
| checkKeySize | back to summary |
|---|---|
| private void checkKeySize(int keySize, AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| generateKeyPair | back to summary |
|---|---|
| public KeyPair generateKeyPair() Implements abstract java. Doc from java. Generates a key pair. Unless an initialization method is called using a KeyPairGenerator interface, algorithm-specific defaults will be used. This will generate a new key pair every time it is called.
| |
| initialize | back to summary |
|---|---|
| public void initialize(int keySize, SecureRandom random) Implements abstract java. Doc from java. Initializes the key pair generator for a certain keysize, using the default parameter set.
| |
| initialize | back to summary |
|---|---|
| public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes the key pair generator using the specified parameter set and user-provided source of randomness. This concrete method has been added to this previously-defined
abstract class. (For backwards compatibility, it cannot be abstract.)
It may be overridden by a provider to initialize the key pair
generator. Such an override
is expected to throw an
| |