public class McElieceCCA2KeyFactorySpi extends KeyFactorySpi
| Modifier and Type | Field and Description |
|---|---|
static String |
OID
The OID of the algorithm.
|
| Constructor and Description |
|---|
McElieceCCA2KeyFactorySpi() |
| Modifier and Type | Method and Description |
|---|---|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec) |
protected PublicKey |
engineGeneratePublic(KeySpec keySpec) |
protected KeySpec |
engineGetKeySpec(Key key,
Class tClass) |
protected Key |
engineTranslateKey(Key key) |
PrivateKey |
generatePrivate(KeySpec keySpec)
Converts, if possible, a key specification into a
BCMcElieceCCA2PrivateKey. |
PrivateKey |
generatePrivate(PrivateKeyInfo pki) |
PublicKey |
generatePublic(KeySpec keySpec)
Converts, if possible, a key specification into a
BCMcElieceCCA2PublicKey. |
PublicKey |
generatePublic(SubjectPublicKeyInfo pki) |
KeySpec |
getKeySpec(Key key,
Class keySpec)
Converts, if possible, a given key into a key specification.
|
Key |
translateKey(Key key)
Translates a key into a form known by the FlexiProvider.
|
public static final String OID
public PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException
BCMcElieceCCA2PublicKey. Currently, the following key
specifications are supported: McElieceCCA2PublicKeySpec,
X509EncodedKeySpec.keySpec - the key specificationInvalidKeySpecException - if the key specification is not supported.public PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException
BCMcElieceCCA2PrivateKey. Currently, the following key
specifications are supported: McElieceCCA2PrivateKeySpec,
PKCS8EncodedKeySpec.keySpec - the key specificationInvalidKeySpecException - if the KeySpec is not supported.public KeySpec getKeySpec(Key key, Class keySpec) throws InvalidKeySpecException
X509EncodedKeySpec,
McElieceCCA2PublicKeySpecPKCS8EncodedKeySpec,
McElieceCCA2PrivateKeySpeckey - the keykeySpec - the key specificationInvalidKeySpecException - if the key type or the key specification is not
supported.BCMcElieceCCA2PrivateKey,
McElieceCCA2PrivateKeySpec,
BCMcElieceCCA2PublicKey,
McElieceCCA2PublicKeySpecpublic Key translateKey(Key key) throws InvalidKeyException
BCMcElieceCCA2PrivateKey,
BCMcElieceCCA2PublicKey.key - the keyInvalidKeyException - if the key type is not supported.public PublicKey generatePublic(SubjectPublicKeyInfo pki) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic PrivateKey generatePrivate(PrivateKeyInfo pki) throws InvalidKeySpecException
InvalidKeySpecExceptionprotected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic in class KeyFactorySpiInvalidKeySpecExceptionprotected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate in class KeyFactorySpiInvalidKeySpecExceptionprotected KeySpec engineGetKeySpec(Key key, Class tClass) throws InvalidKeySpecException
engineGetKeySpec in class KeyFactorySpiInvalidKeySpecExceptionprotected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey in class KeyFactorySpiInvalidKeyExceptionCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.