IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keys
Class IAIKPKCS11EC16PublicKey

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11Key
      extended by iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11PublicKey
          extended by iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11ECPublicKey
              extended by iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11EC16PublicKey
All Implemented Interfaces:
java.io.Serializable, java.security.interfaces.ECKey, java.security.interfaces.ECPublicKey, java.security.Key, java.security.PublicKey

public class IAIKPKCS11EC16PublicKey
extends IAIKPKCS11ECPublicKey
implements java.security.interfaces.ECPublicKey

A Java EC public key object that implements the java 1.5 ECPublicKey interface. This class uses the ECCelerate library from IAIK.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11Key
AES, BATON, BLOWFISH, CAST, CAST128, CAST3, CAST5, CDMF, DES, DES2, DESede, DH, DSA, ECDSA, GENERIC_SECRET, IDEA, JUNIPER, KEA, RC2, RC4, RC5, RSA, SKIPJACK, TWOFISH, VENDOR_DEFINED
 
Fields inherited from interface java.security.interfaces.ECPublicKey
serialVersionUID
 
Constructor Summary
IAIKPKCS11EC16PublicKey(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.PublicKey publicKeyObject)
          Construct a public key object that is associated with the given public key object on the given token.
 
Method Summary
static IAIKPKCS11ECPublicKey create(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.ECDSAPublicKey publicKeyObject)
          Create a new instance of a IAIKPKCS11ECPublicKey which's token managed by the given token manager and is based on the given PKCS#11 key object.
 java.security.spec.ECParameterSpec getParams()
          Get the ECDSA parameters of this key.
 java.security.spec.ECPoint getW()
          Get the public EC point of this key.
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11ECPublicKey
getAlgorithm
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11PublicKey
create, getEncoded, getFormat
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11Key
create, destroy, finalize, getAlgorithmCode, getAlgorithmName, getAlias, getKeyID, getKeyObject, getSession, getTokenManager, isAutoDestroy, isDestroyed, setAutoDestroy, setSession, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Constructor Detail

IAIKPKCS11EC16PublicKey

public IAIKPKCS11EC16PublicKey(TokenManager tokenManager,
                               iaik.pkcs.pkcs11.objects.PublicKey publicKeyObject)
Construct a public key object that is associated with the given public key object on the given token.

Parameters:
tokenManager - The token manager of the token where this key resides.
publicKeyObject - The PKCS#11 key object.
Method Detail

create

public static IAIKPKCS11ECPublicKey create(TokenManager tokenManager,
                                           iaik.pkcs.pkcs11.objects.ECDSAPublicKey publicKeyObject)
Create a new instance of a IAIKPKCS11ECPublicKey which's token managed by the given token manager and is based on the given PKCS#11 key object.

Parameters:
tokenManager - The token manager of the token where the key is.
publicKeyObject - The PKCS#11 key object.
Returns:
A new IAIKPKCS11ECPublicKey that can be used with this provider.

getW

public java.security.spec.ECPoint getW()
Get the public EC point of this key.

Specified by:
getW in interface java.security.interfaces.ECPublicKey
Returns:
The public EC point.

getParams

public java.security.spec.ECParameterSpec getParams()
Get the ECDSA parameters of this key.

Specified by:
getParams in interface java.security.interfaces.ECKey
Returns:
The ECDSA parameters.

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