public class OpenPgpV4Fingerprint extends Object implements CharSequence, Comparable<OpenPgpV4Fingerprint>
Constructor and Description |
---|
OpenPgpV4Fingerprint(byte[] bytes) |
OpenPgpV4Fingerprint(org.bouncycastle.openpgp.PGPPublicKey key) |
OpenPgpV4Fingerprint(org.bouncycastle.openpgp.PGPPublicKeyRing ring) |
OpenPgpV4Fingerprint(org.bouncycastle.openpgp.PGPSecretKey key) |
OpenPgpV4Fingerprint(org.bouncycastle.openpgp.PGPSecretKeyRing ring) |
OpenPgpV4Fingerprint(String fingerprint)
Create an
OpenPgpV4Fingerprint . |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int i) |
int |
compareTo(OpenPgpV4Fingerprint openPgpV4Fingerprint) |
boolean |
equals(Object other) |
long |
getKeyId()
Return the key id of the OpenPGP public key this
OpenPgpV4Fingerprint belongs to. |
int |
hashCode() |
int |
length() |
CharSequence |
subSequence(int i,
int i1) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
public OpenPgpV4Fingerprint(@Nonnull String fingerprint)
OpenPgpV4Fingerprint
.fingerprint
- hexadecimal representation of the fingerprint.public OpenPgpV4Fingerprint(@Nonnull byte[] bytes)
public OpenPgpV4Fingerprint(@Nonnull org.bouncycastle.openpgp.PGPPublicKey key)
public OpenPgpV4Fingerprint(@Nonnull org.bouncycastle.openpgp.PGPSecretKey key)
public OpenPgpV4Fingerprint(@Nonnull org.bouncycastle.openpgp.PGPPublicKeyRing ring)
public OpenPgpV4Fingerprint(@Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing ring)
public long getKeyId()
OpenPgpV4Fingerprint
belongs to.public int length()
length
in interface CharSequence
public char charAt(int i)
charAt
in interface CharSequence
public CharSequence subSequence(int i, int i1)
subSequence
in interface CharSequence
public String toString()
toString
in interface CharSequence
toString
in class Object
public int compareTo(@Nonnull OpenPgpV4Fingerprint openPgpV4Fingerprint)
compareTo
in interface Comparable<OpenPgpV4Fingerprint>