IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keyagreements
Class PKCS11X942Dh2KeyAgreementParameterSpec

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
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec
Direct Known Subclasses:
PKCS11X942DhMQVKeyAgreementParameterSpec

public class PKCS11X942Dh2KeyAgreementParameterSpec
extends PKCS11X942DhKeyAgreementParameterSpec

The Class PKCS11X942DhKeyAgreementParameterSpec. 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
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.  
 
Method Summary
 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.
 
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

PKCS11X942Dh2KeyAgreementParameterSpec

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
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.

PKCS11X942Dh2KeyAgreementParameterSpec

public PKCS11X942Dh2KeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                              java.security.PublicKey publicData,
                                              java.security.PublicKey publicData2,
                                              java.security.PrivateKey privateData)
                                       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.

PKCS11X942Dh2KeyAgreementParameterSpec

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
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.

PKCS11X942Dh2KeyAgreementParameterSpec

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
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

getPublicData

public byte[] getPublicData()
Gets remote static public key.

Returns:
the public data

getPublicData2

public byte[] getPublicData2()
Gets remote ephemeral public key.

Returns:
the public data2

getPrivateDataLen

public int getPrivateDataLen()
Gets local ephemeral private key length.

Returns:
the private data len

getPrivateData

public iaik.pkcs.pkcs11.objects.Object getPrivateData()
Gets local ephemeral private key object.

Returns:
the private data

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