Class OpenPgpV5Fingerprint

  • All Implemented Interfaces:
    java.lang.CharSequence, java.lang.Comparable<OpenPgpFingerprint>

    public class OpenPgpV5Fingerprint
    extends OpenPgpFingerprint
    This class represents a hex encoded, upper case OpenPGP v5 fingerprint.
    • Constructor Detail

      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    java.lang.String fingerprint)
        Parameters:
        fingerprint - uppercase hexadecimal fingerprint of length 64
      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    byte[] bytes)
      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    org.bouncycastle.openpgp.PGPPublicKey key)
      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    org.bouncycastle.openpgp.PGPSecretKey key)
      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    org.bouncycastle.openpgp.PGPPublicKeyRing ring)
      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    org.bouncycastle.openpgp.PGPSecretKeyRing ring)
      • OpenPgpV5Fingerprint

        public OpenPgpV5Fingerprint​(@Nonnull
                                    org.bouncycastle.openpgp.PGPKeyRing ring)
    • Method Detail

      • isValid

        protected boolean isValid​(@Nonnull
                                  java.lang.String fp)
        Description copied from class: OpenPgpFingerprint
        Check, whether the fingerprint consists of 40 valid hexadecimal characters.
        Specified by:
        isValid in class OpenPgpFingerprint
        Parameters:
        fp - fingerprint to check.
        Returns:
        true if fingerprint is valid.
      • prettyPrint

        public java.lang.String prettyPrint()
        Description copied from class: OpenPgpFingerprint
        Return a pretty printed representation of the fingerprint.
        Specified by:
        prettyPrint in class OpenPgpFingerprint
        Returns:
        pretty printed fingerprint
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object