Lines Matching full:privatekey
29 import java.security.PrivateKey;
165 static PrivateKey loadDERPrivateKey(byte[] der) throws Exception {
179 static PrivateKey loadPEMPrivateKey(byte[] pem) throws Exception {
184 static PrivateKey loadPEMPrivateKeyFromFile(String keyFname) throws Exception {
188 static PrivateKey loadDERPrivateKeyFromFile(String keyFname) throws Exception {
228 } else if (key instanceof PrivateKey) {
274 static byte[] sign(PrivateKey privateKey, byte[] input) throws Exception {
275 Signature signer = Signature.getInstance(getSignatureAlgorithm(privateKey));
276 signer.initSign(privateKey);