IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keyagreements
Class PKCS11EcDHKeyAgreementParameterSpec

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.PKCS11EcDHKeyAgreementParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec

public class PKCS11EcDHKeyAgreementParameterSpec
extends PKCS11KeyAgreementSpecWithKDF

The Class EcDHKeyAgreementParameterSpec.


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
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.  
 
Method Summary
 byte[] getSharedData()
          Gets the shared data.
 void setSharedData(java.lang.String sharedData)
          Sets the shared data.
 boolean useCofactorAgreement()
          Use cofactor agreement?.
 
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

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
                                           iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           boolean useROSession,
                                           boolean useUserSession)
Deprecated. 

Instantiates a new AlgorithmParameterSpec.

Parameters:
tokenManager - the token manager
keyTemplate - the key template
useROSession - the use ro session
useUserSession - the use user session

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate)
Instantiates a new AlgorithmParameterSpec.

Parameters:
keyTemplate - the key template

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
                                           iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           boolean useROSession,
                                           boolean useUserSession,
                                           long keyDerivationFunctionType,
                                           java.lang.String sharedData)
Deprecated. 

Instantiates a new AlgorithmParameterSpec.

Parameters:
tokenManager - the token manager
keyTemplate - the key template
useROSession - the use ro session
useUserSession - the use user session
keyDerivationFunctionType - the key derivation function
sharedData - the shared data

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           long keyDerivationFunctionType,
                                           java.lang.String sharedData)
Instantiates a new AlgorithmParameterSpec.

Parameters:
keyTemplate - the key template
keyDerivationFunctionType - the key derivation function
sharedData - the shared data

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
                                           iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           boolean useCofactorAgreement,
                                           boolean useROSession,
                                           boolean useUserSession)
Deprecated. 

Instantiates a new AlgorithmParameterSpec.

Parameters:
tokenManager - the token manager
keyTemplate - the key template
useROSession - the use ro session
useUserSession - the use user session

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           boolean useCofactorAgreement)
Instantiates a new AlgorithmParameterSpec.

Parameters:
keyTemplate - the key template
useCofactorAgreement - whether to use cofactor agreement or not

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(TokenManager tokenManager,
                                           iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           boolean useCofactorAgreement,
                                           boolean useROSession,
                                           boolean useUserSession,
                                           long keyDerivationFunctionType,
                                           java.lang.String sharedData)
Deprecated. 

Instantiates a new AlgorithmParameterSpec.

Parameters:
tokenManager - the token manager
keyTemplate - the key template
useROSession - the use ro session
useUserSession - the use user session
keyDerivationFunctionType - the key derivation function
sharedData - the shared data

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                                           boolean useCofactorAgreement,
                                           long keyDerivationFunctionType,
                                           java.lang.String sharedData)
Instantiates a new AlgorithmParameterSpec.

Parameters:
keyTemplate - the key template
useCofactorAgreement - whether to use cofactor agreement or not
keyDerivationFunctionType - the key derivation function
sharedData - the shared data

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(PKCS11KeyAgreementSpec spec,
                                           boolean useCofactorAgreement)

PKCS11EcDHKeyAgreementParameterSpec

public PKCS11EcDHKeyAgreementParameterSpec(PKCS11KeyAgreementSpec spec)
Method Detail

useCofactorAgreement

public boolean useCofactorAgreement()
Use cofactor agreement?.

Returns:
true, if cofactor agreement should be performed

getSharedData

public byte[] getSharedData()
Gets the shared data.

Returns:
the shared data

setSharedData

public void setSharedData(java.lang.String sharedData)
Sets the shared data.

Parameters:
sharedData - the new shared 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