For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki.provider
Class EncodedKeyFactory

java.lang.Object
  extended byjava.security.KeyFactorySpi
      extended bygnu.crypto.pki.provider.EncodedKeyFactory

public class EncodedKeyFactory
extends KeyFactorySpi

A factory for keys encoded in either the X.509 format (for public keys) or the PKCS#8 format (for private keys).

Author:
Casey Marshall (rsdio@metastatic.org)

Constructor Summary
EncodedKeyFactory()
           
 
Method Summary
 PrivateKey engineGeneratePrivate(KeySpec spec)
           
 PublicKey engineGeneratePublic(KeySpec spec)
           
 KeySpec engineGetKeySpec(Key key, Class speClass)
           
 Key engineTranslateKey(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodedKeyFactory

public EncodedKeyFactory()
Method Detail

engineGeneratePublic

public PublicKey engineGeneratePublic(KeySpec spec)
                               throws InvalidKeySpecException
Throws:
InvalidKeySpecException

engineGeneratePrivate

public PrivateKey engineGeneratePrivate(KeySpec spec)
                                 throws InvalidKeySpecException
Throws:
InvalidKeySpecException

engineGetKeySpec

public KeySpec engineGetKeySpec(Key key,
                                Class speClass)
                         throws InvalidKeySpecException
Throws:
InvalidKeySpecException

engineTranslateKey

public Key engineTranslateKey(Key key)
                       throws InvalidKeyException
Throws:
InvalidKeyException

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.