IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keyagreements
Class PKCS11X942DhMQVKeyAgreementParameterSpec

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
      extended by iaik.pkcs.pkcs11.provider.keyagreements.PKCS11KeyAgreementSpec
          extended by iaik.pkcs.pkcs11.provider.keyagreements.PKCS11KeyAgreementSpecWithKDF
              extended by iaik.pkcs.pkcs11.provider.keyagreements.PKCS11X942DhKeyAgreementParameterSpec
                  extended by iaik.pkcs.pkcs11.provider.keyagreements.PKCS11X942Dh2KeyAgreementParameterSpec
                      extended by iaik.pkcs.pkcs11.provider.keyagreements.PKCS11X942DhMQVKeyAgreementParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec

public class PKCS11X942DhMQVKeyAgreementParameterSpec
extends PKCS11X942Dh2KeyAgreementParameterSpec

The Class PKCS11X942MQVKeyAgreementParameterSpec. For use with the X942DhKeyAgreement engine.


Field Summary
 
Fields inherited from class iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
USE_PUBLIC_SESSION, USE_READ_ONLY_SESSION, USE_READ_WRITE_SESSION, USE_USER_SESSION
 
Constructor Summary
PKCS11X942DhMQVKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, long keyDerivationFunctionType, byte[] otherInfo, IAIKPKCS11DhPublicKey publicData, IAIKPKCS11DhPublicKey publicData2, IAIKPKCS11DhPrivateKey privateData, java.security.PublicKey publicKey)
          Instantiates a parameter spec.
PKCS11X942DhMQVKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, java.security.PublicKey publicData, java.security.PublicKey publicData2, java.security.PrivateKey privateData, java.security.PublicKey publicKey)
          Instantiates a parameter spec.
PKCS11X942DhMQVKeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useROSession, boolean useUserSession, long keyDerivationFunctionType, byte[] otherInfo, IAIKPKCS11DhPublicKey publicData, IAIKPKCS11DhPublicKey publicData2, IAIKPKCS11DhPrivateKey privateData, java.security.PublicKey publicKey)
          Deprecated.  
PKCS11X942DhMQVKeyAgreementParameterSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.Key keyTemplate, boolean useROSession, boolean useUserSession, java.security.PublicKey publicData, java.security.PublicKey publicData2, java.security.PrivateKey privateData, java.security.PublicKey publicKey)
          Deprecated.  
 
Method Summary
 iaik.pkcs.pkcs11.objects.Object getPublicKey()
          Gets the local ephemeral public key.
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keyagreements.PKCS11X942Dh2KeyAgreementParameterSpec
getPrivateData, getPrivateDataLen, getPublicData, getPublicData2
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keyagreements.PKCS11X942DhKeyAgreementParameterSpec
getOtherInfo, setOtherInfo
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keyagreements.PKCS11KeyAgreementSpecWithKDF
getKeyDerivationFunctionType, setKeyDerivationFunctionType
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keyagreements.PKCS11KeyAgreementSpec
getKeyTemplate
 
Methods inherited from class iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
getPin, getTokenManager, isUseAnonymousRole, isUseROSession, isUseRwSession, isUseSORole, isUseUserRole, isUseUserSession, setPin, setTokenManager, setUseAnonymousRole, setUseSORole, setUseUserRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11X942DhMQVKeyAgreementParameterSpec

public PKCS11X942DhMQVKeyAgreementParameterSpec(TokenManager tokenManager,
                                                iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                                boolean useROSession,
                                                boolean useUserSession,
                                                java.security.PublicKey publicData,
                                                java.security.PublicKey publicData2,
                                                java.security.PrivateKey privateData,
                                                java.security.PublicKey publicKey)
                                         throws java.security.InvalidKeyException
Deprecated. 

Instantiates a parameter spec.

Parameters:
tokenManager - the token manager
keyTemplate - the key template
useROSession - use ro session
useUserSession - use user session
publicData - the remote static public key.
publicData2 - the remote ephemeral public key.
privateData - the local ephemeral private key.
Throws:
java.security.InvalidKeyException - in case a wrong key is supplied.

PKCS11X942DhMQVKeyAgreementParameterSpec

public PKCS11X942DhMQVKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                                java.security.PublicKey publicData,
                                                java.security.PublicKey publicData2,
                                                java.security.PrivateKey privateData,
                                                java.security.PublicKey publicKey)
                                         throws java.security.InvalidKeyException
Instantiates a parameter spec.

Parameters:
keyTemplate - the key template
publicData - the remote static public key.
publicData2 - the remote ephemeral public key.
privateData - the local ephemeral private key.
Throws:
java.security.InvalidKeyException - in case a wrong key is supplied.

PKCS11X942DhMQVKeyAgreementParameterSpec

public PKCS11X942DhMQVKeyAgreementParameterSpec(TokenManager tokenManager,
                                                iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                                boolean useROSession,
                                                boolean useUserSession,
                                                long keyDerivationFunctionType,
                                                byte[] otherInfo,
                                                IAIKPKCS11DhPublicKey publicData,
                                                IAIKPKCS11DhPublicKey publicData2,
                                                IAIKPKCS11DhPrivateKey privateData,
                                                java.security.PublicKey publicKey)
                                         throws java.security.InvalidKeyException
Deprecated. 

Instantiates a parameter spec.

Parameters:
tokenManager - the token manager
keyTemplate - the key template
useROSession - use ro session
useUserSession - use user session
keyDerivationFunctionType - the key derivation function type
otherInfo - the other info
publicData - the remote static public key.
publicData2 - the remote ephemeral public key.
privateData - the local ephemeral private key.
Throws:
java.security.InvalidKeyException - in case a wrong key is supplied.

PKCS11X942DhMQVKeyAgreementParameterSpec

public PKCS11X942DhMQVKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                                long keyDerivationFunctionType,
                                                byte[] otherInfo,
                                                IAIKPKCS11DhPublicKey publicData,
                                                IAIKPKCS11DhPublicKey publicData2,
                                                IAIKPKCS11DhPrivateKey privateData,
                                                java.security.PublicKey publicKey)
                                         throws java.security.InvalidKeyException
Instantiates a parameter spec.

Parameters:
keyTemplate - the key template
keyDerivationFunctionType - the key derivation function type
otherInfo - the other info
publicData - the remote static public key.
publicData2 - the remote ephemeral public key.
privateData - the local ephemeral private key.
Throws:
java.security.InvalidKeyException - in case a wrong key is supplied.
Method Detail

getPublicKey

public iaik.pkcs.pkcs11.objects.Object getPublicKey()
Gets the local ephemeral public key.

Returns:
the public key object

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6