public class PKCS11EcDHKeyAgreementParameterSpec extends PKCS11KeyAgreementSpecWithKDF
keyDerivationFunctionType_
keyTemplate_
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 |
---|
PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate)
Instantiates a new AlgorithmParameterSpec.
|
PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useCofactorAgreement)
Instantiates a new AlgorithmParameterSpec.
|
PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useCofactorAgreement,
long keyDerivationFunctionType,
java.lang.String sharedData)
Instantiates a new AlgorithmParameterSpec.
|
PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
long keyDerivationFunctionType,
java.lang.String sharedData)
Instantiates a new AlgorithmParameterSpec.
|
PKCS11EcDHKeyAgreementParameterSpec(PKCS11KeyAgreementSpec spec) |
PKCS11EcDHKeyAgreementParameterSpec(PKCS11KeyAgreementSpec spec,
boolean useCofactorAgreement) |
PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useROSession,
boolean useUserSession)
Deprecated.
|
PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useCofactorAgreement,
boolean useROSession,
boolean useUserSession)
Deprecated.
|
PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useCofactorAgreement,
boolean useROSession,
boolean useUserSession,
long keyDerivationFunctionType,
java.lang.String sharedData)
Deprecated.
|
PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useROSession,
boolean useUserSession,
long keyDerivationFunctionType,
java.lang.String sharedData)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getSharedData()
Gets the shared data.
|
void |
setSharedData(java.lang.String sharedData)
Sets the shared data.
|
boolean |
useCofactorAgreement()
Use cofactor agreement?.
|
getKeyDerivationFunctionType, setKeyDerivationFunctionType
getKeyTemplate
getPin, getRole, getTokenManager, isUseAnonymousRole, isUseROSession, isUseRwSession, isUseSORole, isUseUserRole, isUseUserSession, setPin, setRole, setTokenManager, setUseAnonymousRole, setUseSORole, setUseUserRole
public PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useROSession, boolean useUserSession)
tokenManager
- the token managerkeyTemplate
- the key templateuseROSession
- the use ro sessionuseUserSession
- the use user sessionpublic PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate)
keyTemplate
- the key templatepublic PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useROSession, boolean useUserSession, long keyDerivationFunctionType, java.lang.String sharedData)
tokenManager
- the token managerkeyTemplate
- the key templateuseROSession
- the use ro sessionuseUserSession
- the use user sessionkeyDerivationFunctionType
- the key derivation functionsharedData
- the shared datapublic PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, long keyDerivationFunctionType, java.lang.String sharedData)
keyTemplate
- the key templatekeyDerivationFunctionType
- the key derivation functionsharedData
- the shared datapublic PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useCofactorAgreement, boolean useROSession, boolean useUserSession)
tokenManager
- the token managerkeyTemplate
- the key templateuseROSession
- the use ro sessionuseUserSession
- the use user sessionpublic PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useCofactorAgreement)
keyTemplate
- the key templateuseCofactorAgreement
- whether to use cofactor agreement or notpublic PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useCofactorAgreement, boolean useROSession, boolean useUserSession, long keyDerivationFunctionType, java.lang.String sharedData)
tokenManager
- the token managerkeyTemplate
- the key templateuseROSession
- the use ro sessionuseUserSession
- the use user sessionkeyDerivationFunctionType
- the key derivation functionsharedData
- the shared datapublic PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useCofactorAgreement, long keyDerivationFunctionType, java.lang.String sharedData)
keyTemplate
- the key templateuseCofactorAgreement
- whether to use cofactor agreement or notkeyDerivationFunctionType
- the key derivation functionsharedData
- the shared datapublic PKCS11EcDHKeyAgreementParameterSpec(PKCS11KeyAgreementSpec spec, boolean useCofactorAgreement)
public PKCS11EcDHKeyAgreementParameterSpec(PKCS11KeyAgreementSpec spec)
public boolean useCofactorAgreement()
public byte[] getSharedData()
public void setSharedData(java.lang.String sharedData)
sharedData
- the new shared dataIAIK 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