public class EcPk extends Object
| Modifier and Type | Field and Description |
|---|---|
Object |
jwk |
CryptoKey |
key |
forge.pk |
pk |
CryptoKey |
signKey |
| Modifier | Constructor and Description |
|---|---|
protected |
EcPk() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares two public keys, and returns true if their PEM forms match.
|
String |
fingerprint()
Hashes the public key into an SSH compatible fingerprint.
|
static EcPk |
fromPem(String pem)
Decodes a PEM encoded SubjectPublicKeyInfo (PKCS#8) or RSAPublicKey (PKCS#1) formatted RSA Public Key.
|
Object |
toJwk() |
String |
toPem()
Encodes the public key into a PEM encoded SubjectPublicKeyInfo (PKCS#8) formatted RSA Public Key.
|
String |
toPkcs1Pem()
Encodes the public key into a PEM encoded RSAPublicKey (PKCS#1) formatted RSA Public Key.
|
String |
toPkcs8Pem()
Encodes the public key into a PEM encoded SubjectPublicKeyInfo (PKCS#8) formatted RSA Public Key.
|
Boolean |
verify(forge.bytes bytes,
forge.payload decode64) |
public forge.pk pk
public Object jwk
public CryptoKey key
public CryptoKey signKey
public static EcPk fromPem(String pem)
{string} - pem PEM as a string.public boolean equals(Object obj)
public String toPem()
public String toPkcs1Pem()
public String toPkcs8Pem()
public Object toJwk()
public String fingerprint()
public Boolean verify(forge.bytes bytes, forge.payload decode64)
Copyright © 2018 Eduworks Corporation. All rights reserved.