Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.provider.asymmetric.edec
Class KeyFactorySpi

java.lang.Object
  |
  +--java.security.KeyFactorySpi
        |
        +--org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi
              |
              +--org.bouncycastle.jcajce.provider.asymmetric.edec.KeyFactorySpi
All Implemented Interfaces:
AsymmetricKeyInfoConverter
Direct Known Subclasses:
KeyFactorySpi.Ed25519, KeyFactorySpi.Ed448, KeyFactorySpi.EdDSA, KeyFactorySpi.X25519, KeyFactorySpi.X448, KeyFactorySpi.XDH

public class KeyFactorySpi
extends BaseKeyFactorySpi
implements AsymmetricKeyInfoConverter


Inner Class Summary
static class KeyFactorySpi.Ed25519
           
static class KeyFactorySpi.Ed448
           
static class KeyFactorySpi.EdDSA
           
static class KeyFactorySpi.X25519
           
static class KeyFactorySpi.X448
           
static class KeyFactorySpi.XDH
           
 
Constructor Summary
KeyFactorySpi(java.lang.String algorithm, boolean isXdh, int specificBase)
           
 
Method Summary
protected  java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
           
protected  java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
           
protected  java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class spec)
           
protected  java.security.Key engineTranslateKey(java.security.Key key)
           
 java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
           
 java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFactorySpi

public KeyFactorySpi(java.lang.String algorithm,
                     boolean isXdh,
                     int specificBase)
Method Detail

engineTranslateKey

protected java.security.Key engineTranslateKey(java.security.Key key)
                                        throws java.security.InvalidKeyException
Overrides:
engineTranslateKey in class java.security.KeyFactorySpi

engineGetKeySpec

protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
                                                      java.lang.Class spec)
                                               throws java.security.spec.InvalidKeySpecException
Overrides:
engineGetKeySpec in class BaseKeyFactorySpi

engineGeneratePrivate

protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
                                                  throws java.security.spec.InvalidKeySpecException
Overrides:
engineGeneratePrivate in class BaseKeyFactorySpi

engineGeneratePublic

protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
                                                throws java.security.spec.InvalidKeySpecException
Overrides:
engineGeneratePublic in class BaseKeyFactorySpi

generatePrivate

public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
                                         throws java.io.IOException
Specified by:
generatePrivate in interface AsymmetricKeyInfoConverter

generatePublic

public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo)
                                       throws java.io.IOException
Specified by:
generatePublic in interface AsymmetricKeyInfoConverter

Bouncy Castle Cryptography Library 1.77.0