java.lang.Object
java.security.KeyFactorySpi
cryptix.jce.provider.pk.RSAKeyFactory
- public final class RSAKeyFactory
- extends java.security.KeyFactorySpi
- Version:
- $Revision: 1.3 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSAKeyFactory
public RSAKeyFactory()
engineGeneratePrivate
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
- Description copied from class:
java.security.KeyFactorySpi
- Generates a private key from the provided key specification.
engineGeneratePublic
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
- Description copied from class:
java.security.KeyFactorySpi
- Generates a public key from the provided key specification.
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
throws java.security.spec.InvalidKeySpecException
- Description copied from class:
java.security.KeyFactorySpi
- Returns a key specification for the given key. keySpec
identifies the specification class to return the key
material in.
engineTranslateKey
protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
- Description copied from class:
java.security.KeyFactorySpi
- Translates the key from an unknown or untrusted provider
into a key for this key factory.
decodePrivateKey
private java.security.PrivateKey decodePrivateKey(java.security.spec.X509EncodedKeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
decodePublicKey
private java.security.PublicKey decodePublicKey(java.security.spec.X509EncodedKeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
byte[] containing the DER of:
SEQUENCE
AlgorithmId
BIT STRING
where BIT STRING is the DER encoding of:
SEQUENCE
INTEGER modulus
INTEGER publicExponent