gnu.crypto.pki.provider
Class EncodedKeyFactory
java.lang.Object
java.security.KeyFactorySpi
gnu.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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncodedKeyFactory
public EncodedKeyFactory()
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
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.