public class Key extends Object
| Constructor and Description |
|---|
Key() |
| Modifier and Type | Method and Description |
|---|---|
RSAPrivateKey |
getPrivKey() |
void |
getPrivKeyFromFile(String inFile)
Reads the private key from certificate file and
stores the key in the member data.
|
RSAPublicKey |
getPubKey() |
void |
getPubKeyFromFile(X509Certificate cert)
Reads the public key from the certificate file and
stores the key and the length of the public key
in member data.
|
int |
getPubKeyLen() |
public void getPubKeyFromFile(X509Certificate cert)
X509Certificate - - The certificate stored
the public keypublic void getPrivKeyFromFile(String inFile) throws SecurityException
String - - The file stored the private keySecurityExceptionpublic RSAPublicKey getPubKey()
public RSAPrivateKey getPrivKey()
public int getPubKeyLen()
Copyright © 2017. All Rights Reserved.