public abstract class Pin
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
pinBytes |
protected static java.security.MessageDigest |
sha256md |
| Modifier | Constructor and Description |
|---|---|
protected |
Pin(byte[] pinBytes) |
protected |
Pin(java.lang.String pinHexString) |
| Modifier and Type | Method and Description |
|---|---|
static Pin |
fromString(java.lang.String string)
Create a new
Pin from the given String. |
protected abstract boolean |
pinsCertificate(byte[] pubkey) |
abstract boolean |
pinsCertificate(java.security.cert.X509Certificate x509certificate) |
protected static final java.security.MessageDigest sha256md
protected final byte[] pinBytes
protected Pin(byte[] pinBytes)
protected Pin(java.lang.String pinHexString)
public abstract boolean pinsCertificate(java.security.cert.X509Certificate x509certificate)
throws java.security.cert.CertificateEncodingException
java.security.cert.CertificateEncodingExceptionprotected abstract boolean pinsCertificate(byte[] pubkey)
public static Pin fromString(java.lang.String string)
Pin from the given String.
The Pin String must be in the format [type]:[hex-string], where type denotes the type of the Pin and hex-string is the binary value of the Pin encoded in hex. Currently supported types are
string - the Pin String.java.lang.IllegalArgumentException - if the given String is not a valid Pin String