public class FingerprintCertVerifyer
extends java.lang.Object
implements com.t_arn.lib.net.ICertificateVerifyer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
stLastFingerprint |
protected java.lang.String |
stValidFingerprint |
protected static java.lang.String |
stVersion |
Constructor and Description |
---|
FingerprintCertVerifyer(java.lang.String validFingerprint)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fnGetLastFingerprint()
Get the last calculated fingerprint
|
static java.lang.String |
getVersion()
Get the version of this class
|
boolean |
isValid(org.bouncycastle.asn1.x509.Certificate[] certs)
Verifies the validity of a certificate by comparing the calculared
fingerprint with the expected fingerprint
|
protected static java.lang.String stVersion
protected java.lang.String stValidFingerprint
protected java.lang.String stLastFingerprint
public FingerprintCertVerifyer(java.lang.String validFingerprint)
validFingerprint
- The fingerprint of the certicate that we trust
If set to "DO_NOT_VERIFY" no verification is done. DO NOT USE this unless
you know exactly what you are doing!public java.lang.String fnGetLastFingerprint()
public static java.lang.String getVersion()
public boolean isValid(org.bouncycastle.asn1.x509.Certificate[] certs)
isValid
in interface com.t_arn.lib.net.ICertificateVerifyer
certs
- The certificate chain