kz.gamma.jce.provider
Class JDKKeyFactory

java.lang.Object
  extended by java.security.KeyFactorySpi
      extended by kz.gamma.jce.provider.JDKKeyFactory
Direct Known Subclasses:
JDKKeyFactory.CRYPTOPRO, JDKKeyFactory.ECGOST34310

public class JDKKeyFactory
extends java.security.KeyFactorySpi


Nested Class Summary
static class JDKKeyFactory.CRYPTOPRO
           
static class JDKKeyFactory.ECGOST34310
           
 
Constructor Summary
JDKKeyFactory()
           
 
Method Summary
(package private) static java.security.PublicKey createPublicKeyFromDERStream(byte[] in)
           
(package private) static java.security.PublicKey createPublicKeyFromPublicKeyInfo(SubjectPublicKeyInfo info)
           
protected  java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
           
protected  java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
           
protected
<T extends java.security.spec.KeySpec>
T
engineGetKeySpec(java.security.Key key, java.lang.Class<T> keySpec)
           
protected  java.security.Key engineTranslateKey(java.security.Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKKeyFactory

public JDKKeyFactory()
Method Detail

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.