kz.gamma.jce.provider
Class JDKKeyFactory
java.lang.Object
java.security.KeyFactorySpi
kz.gamma.jce.provider.JDKKeyFactory
- Direct Known Subclasses:
- JDKKeyFactory.CRYPTOPRO, JDKKeyFactory.ECGOST34310
public class JDKKeyFactory
- extends java.security.KeyFactorySpi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDKKeyFactory
public JDKKeyFactory()
engineGeneratePublic
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
- Specified by:
engineGeneratePublic in class java.security.KeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
engineGeneratePrivate
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
- Specified by:
engineGeneratePrivate in class java.security.KeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
engineGetKeySpec
protected <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key key,
java.lang.Class<T> keySpec)
throws java.security.spec.InvalidKeySpecException
- Specified by:
engineGetKeySpec in class java.security.KeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
engineTranslateKey
protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
- Specified by:
engineTranslateKey in class java.security.KeyFactorySpi
- Throws:
java.security.InvalidKeyException
createPublicKeyFromPublicKeyInfo
static java.security.PublicKey createPublicKeyFromPublicKeyInfo(SubjectPublicKeyInfo info)
createPublicKeyFromDERStream
static java.security.PublicKey createPublicKeyFromDERStream(byte[] in)
throws java.io.IOException,
java.security.spec.InvalidKeySpecException
- Throws:
java.io.IOException
java.security.spec.InvalidKeySpecException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.