public class PKCS11KeyPairGenerationSpec extends PKCS11Spec implements java.security.spec.AlgorithmParameterSpec
Modifier and Type | Field and Description |
---|---|
protected java.security.spec.AlgorithmParameterSpec |
parameterSepc_
The (optional) parameter spec.
|
protected iaik.pkcs.pkcs11.objects.PrivateKey |
privateKeyTemplate_
The template for the new private key.
|
protected iaik.pkcs.pkcs11.objects.PublicKey |
publicKeyTemplate_
The template for the new public key.
|
tokenManager_, USE_PUBLIC_ROLE, USE_PUBLIC_SESSION, USE_READ_ONLY_SESSION, USE_READ_WRITE_SESSION, USE_SO_ROLE, USE_USER_ROLE, USE_USER_SESSION, usePin_, useRole_, useROSession_
Constructor and Description |
---|
PKCS11KeyPairGenerationSpec(java.security.spec.AlgorithmParameterSpec parameterSpec,
iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate,
iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate)
Constructor taking several parameters that control where and how the key should be generated.
|
PKCS11KeyPairGenerationSpec(iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate,
iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate)
Constructor taking several parameters that control where and how the key should be generated.
|
PKCS11KeyPairGenerationSpec(TokenManager tokenManager,
java.security.spec.AlgorithmParameterSpec parameterSpec,
iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate,
iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate,
boolean useROSession,
boolean useUserSession)
Deprecated.
|
PKCS11KeyPairGenerationSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate,
iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate,
boolean useROSession,
boolean useUserSession)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.security.spec.AlgorithmParameterSpec |
getAlgorithmParameterSpec()
Get the parameter spec if available.
|
iaik.pkcs.pkcs11.objects.PrivateKey |
getPrivateKeyTemplate()
Get the template for the new private key.
|
iaik.pkcs.pkcs11.objects.PublicKey |
getPublicKeyTemplate()
Get the template for the new public key.
|
getPin, getRole, getTokenManager, isUseAnonymousRole, isUseROSession, isUseRwSession, isUseSORole, isUseUserRole, isUseUserSession, setPin, setRole, setTokenManager, setUseAnonymousRole, setUseSORole, setUseUserRole
protected iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate_
protected iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate_
protected java.security.spec.AlgorithmParameterSpec parameterSepc_
public PKCS11KeyPairGenerationSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate, iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate, boolean useROSession, boolean useUserSession)
tokenManager
- The manager to handle the token.publicKeyTemplate
- The template for the new public key.privateKeyTemplate
- The template for the new private key.useROSession
- true
(USE_READ_ONLY_SESSION
), if the keys should be
generated using a read-only session. This is only possible for session-objects.
false
( USE_READ_WRITE_SESSION
) to use a read-write session.useUserSession
- true
(USE_USER_SESSION
), if the keys should be generated
using a user session. This is required for private objects (key); i.e. keys that have
their private flag set. false
(USE_PUBLIC_SESSION
) to use a
public session. This will only work for public objects.public PKCS11KeyPairGenerationSpec(iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate, iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate)
publicKeyTemplate
- The template for the new public key.privateKeyTemplate
- The template for the new private key.public PKCS11KeyPairGenerationSpec(TokenManager tokenManager, java.security.spec.AlgorithmParameterSpec parameterSpec, iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate, iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate, boolean useROSession, boolean useUserSession)
tokenManager
- The manager to handle the token.parameterSpec
- The parameters to use for generating the key-pair. The values in this object have
lower priority than those in the key templates.publicKeyTemplate
- The template for the new public key.privateKeyTemplate
- The template for the new private key.useROSession
- true
(USE_READ_ONLY_SESSION
), if the keys should be
generated using a read-only session. This is only possible for session-objects.
false
( USE_READ_WRITE_SESSION
) to use a read-write session.useUserSession
- true
(USE_USER_SESSION
), if the keys should be generated
using a user session. This is required for private objects (key); i.e. keys that have
their private flag set. false
(USE_PUBLIC_SESSION
) to use a
public session. This will only work for public objects.public PKCS11KeyPairGenerationSpec(java.security.spec.AlgorithmParameterSpec parameterSpec, iaik.pkcs.pkcs11.objects.PublicKey publicKeyTemplate, iaik.pkcs.pkcs11.objects.PrivateKey privateKeyTemplate)
parameterSpec
- The parameters to use for generating the key-pair. The values in this object have
lower priority than those in the key templates.publicKeyTemplate
- The template for the new public key.privateKeyTemplate
- The template for the new private key.public iaik.pkcs.pkcs11.objects.PrivateKey getPrivateKeyTemplate()
public iaik.pkcs.pkcs11.objects.PublicKey getPublicKeyTemplate()
public java.security.spec.AlgorithmParameterSpec getAlgorithmParameterSpec()
IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4