public class PKCS11X942Dh2KeyAgreementParameterSpec extends PKCS11X942DhKeyAgreementParameterSpec
X942DhKeyAgreement
engine.otherInfo_
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 |
---|
PKCS11X942Dh2KeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
long keyDerivationFunctionType,
byte[] otherInfo,
java.security.PublicKey publicData,
java.security.PublicKey publicData2,
java.security.PrivateKey privateData)
Instantiates a parameter spec.
|
PKCS11X942Dh2KeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
java.security.PublicKey publicData,
java.security.PublicKey publicData2,
java.security.PrivateKey privateData)
Instantiates a parameter spec.
|
PKCS11X942Dh2KeyAgreementParameterSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useROSession,
boolean useUserSession,
long keyDerivationFunctionType,
byte[] otherInfo,
java.security.PublicKey publicData,
java.security.PublicKey publicData2,
java.security.PrivateKey privateData)
Deprecated.
|
PKCS11X942Dh2KeyAgreementParameterSpec(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.Key keyTemplate,
boolean useROSession,
boolean useUserSession,
java.security.PublicKey publicData,
java.security.PublicKey publicData2,
java.security.PrivateKey privateData)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
iaik.pkcs.pkcs11.objects.Object |
getPrivateData()
Gets local ephemeral private key object.
|
int |
getPrivateDataLen()
Gets local ephemeral private key length.
|
byte[] |
getPublicData()
Gets remote static public key.
|
byte[] |
getPublicData2()
Gets remote ephemeral public key.
|
getOtherInfo, setOtherInfo
getKeyDerivationFunctionType, setKeyDerivationFunctionType
getKeyTemplate
getPin, getRole, getTokenManager, isUseAnonymousRole, isUseROSession, isUseRwSession, isUseSORole, isUseUserRole, isUseUserSession, setPin, setRole, setTokenManager, setUseAnonymousRole, setUseSORole, setUseUserRole
public PKCS11X942Dh2KeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useROSession, boolean useUserSession, java.security.PublicKey publicData, java.security.PublicKey publicData2, java.security.PrivateKey privateData) throws java.security.InvalidKeyException
tokenManager
- the token managerkeyTemplate
- the key templateuseROSession
- use ro sessionuseUserSession
- use user sessionpublicData
- the remote static public key.publicData2
- the remote ephemeral public key.privateData
- the local ephemeral private key.java.security.InvalidKeyException
- in case a wrong key is supplied.public PKCS11X942Dh2KeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, java.security.PublicKey publicData, java.security.PublicKey publicData2, java.security.PrivateKey privateData) throws java.security.InvalidKeyException
keyTemplate
- the key templatepublicData
- the remote static public key.publicData2
- the remote ephemeral public key.privateData
- the local ephemeral private key.java.security.InvalidKeyException
- in case a wrong key is supplied.public PKCS11X942Dh2KeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useROSession, boolean useUserSession, long keyDerivationFunctionType, byte[] otherInfo, java.security.PublicKey publicData, java.security.PublicKey publicData2, java.security.PrivateKey privateData) throws java.security.InvalidKeyException
tokenManager
- the token managerkeyTemplate
- the key templateuseROSession
- use ro sessionuseUserSession
- use user sessionkeyDerivationFunctionType
- the key derivation function typeotherInfo
- the other infopublicData
- the remote static public key.publicData2
- the remote ephemeral public key.privateData
- the local ephemeral private key.java.security.InvalidKeyException
- in case a wrong key is supplied.public PKCS11X942Dh2KeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, long keyDerivationFunctionType, byte[] otherInfo, java.security.PublicKey publicData, java.security.PublicKey publicData2, java.security.PrivateKey privateData) throws java.security.InvalidKeyException
keyTemplate
- the key templatekeyDerivationFunctionType
- the key derivation function typeotherInfo
- the other infopublicData
- the remote static public key.publicData2
- the remote ephemeral public key.privateData
- the local ephemeral private key.java.security.InvalidKeyException
- in case a wrong key is supplied.public byte[] getPublicData()
public byte[] getPublicData2()
public int getPrivateDataLen()
public iaik.pkcs.pkcs11.objects.Object getPrivateData()
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