|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.KeyFactorySpi
org.bouncycastle.pqc.jcajce.provider.mceliece.McElieceCCA2KeyFactorySpi
public class McElieceCCA2KeyFactorySpi
This class is used to translate between McEliece CCA2 keys and key specifications.
BCMcElieceCCA2PrivateKey,
McElieceCCA2PrivateKeySpec,
BCMcElieceCCA2PublicKey,
McElieceCCA2PublicKeySpec| Field Summary | |
|---|---|
static java.lang.String |
OID
The OID of the algorithm. |
| Constructor Summary | |
|---|---|
McElieceCCA2KeyFactorySpi()
|
|
| 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 tClass)
|
protected java.security.Key |
engineTranslateKey(java.security.Key key)
|
java.security.PrivateKey |
generatePrivate(java.security.spec.KeySpec keySpec)
Converts, if possible, a key specification into a BCMcElieceCCA2PrivateKey. |
java.security.PrivateKey |
generatePrivate(PrivateKeyInfo pki)
|
java.security.PublicKey |
generatePublic(java.security.spec.KeySpec keySpec)
Converts, if possible, a key specification into a BCMcElieceCCA2PublicKey. |
java.security.PublicKey |
generatePublic(SubjectPublicKeyInfo pki)
|
java.security.spec.KeySpec |
getKeySpec(java.security.Key key,
java.lang.Class keySpec)
Converts, if possible, a given key into a key specification. |
java.security.Key |
translateKey(java.security.Key key)
Translates a key into a form known by the FlexiProvider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OID
| Constructor Detail |
|---|
public McElieceCCA2KeyFactorySpi()
| Method Detail |
|---|
public java.security.PublicKey generatePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
BCMcElieceCCA2PublicKey. Currently, the following key
specifications are supported: McElieceCCA2PublicKeySpec,
X509EncodedKeySpec.
keySpec - the key specification
java.security.spec.InvalidKeySpecException - if the key specification is not supported.
public java.security.PrivateKey generatePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
BCMcElieceCCA2PrivateKey. Currently, the following key
specifications are supported: McElieceCCA2PrivateKeySpec,
PKCS8EncodedKeySpec.
keySpec - the key specification
java.security.spec.InvalidKeySpecException - if the KeySpec is not supported.
public java.security.spec.KeySpec getKeySpec(java.security.Key key,
java.lang.Class keySpec)
throws java.security.spec.InvalidKeySpecException
X509EncodedKeySpec,
McElieceCCA2PublicKeySpecPKCS8EncodedKeySpec,
McElieceCCA2PrivateKeySpec
key - the keykeySpec - the key specification
java.security.spec.InvalidKeySpecException - if the key type or the key specification is not
supported.BCMcElieceCCA2PrivateKey,
McElieceCCA2PrivateKeySpec,
BCMcElieceCCA2PublicKey,
McElieceCCA2PublicKeySpec
public java.security.Key translateKey(java.security.Key key)
throws java.security.InvalidKeyException
BCMcElieceCCA2PrivateKey,
BCMcElieceCCA2PublicKey.
key - the key
java.security.InvalidKeyException - if the key type is not supported.
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo pki)
throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
public java.security.PrivateKey generatePrivate(PrivateKeyInfo pki)
throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePublic in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecException
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecException
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class tClass)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecException
protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpijava.security.InvalidKeyException
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||