public class DsaKeyPairProvider extends KeyPairProvider
| Constructor and Description |
|---|
DsaKeyPairProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSupported(String algorithm) |
KeyPair |
readKeyPair(String algorithm,
Reader rdr,
char[] passphrase)
DSA Key Pair format -- the PEM file contains an ASN.1 sequence containing six integers:
p, q, g, y, and x.
|
PublicKey |
readPublicKey(String algorithm,
Reader rdr)
DSA public key format -- the PEM file contains a "SubjectPublicKeyInfo" object, which contains
an "Algorithm Identifier" that consists of three integers (p, q, and g) and a single
integer representing y.
|
public static final String DSA_TYPE
public boolean isSupported(String algorithm)
isSupported in class KeyPairProviderpublic KeyPair readKeyPair(String algorithm, Reader rdr, char[] passphrase) throws CryptoException, IOException
readKeyPair in class KeyPairProviderCryptoExceptionIOExceptionpublic PublicKey readPublicKey(String algorithm, Reader rdr) throws CryptoException, IOException
readPublicKey in class KeyPairProviderCryptoExceptionIOExceptionCopyright © 2014 Apigee Corporation. All Rights Reserved.