Class IdentityPublicKey

java.lang.Object
org.cloudburstmc.netty.util.nethernet.IdentityPublicKey

public final class IdentityPublicKey extends Object
Canonical named secp384r1 SPKI DER, with an uncompressed and validated public point.
  • Method Details

    • canonical

      public static byte[] canonical(PublicKey key)
      Parameters:
      key - The key to canonicalise
      Returns:
      Its fixed 120 byte encoding, so that two spellings of one key compare equal
      Throws:
      IllegalArgumentException - If it is not a point on secp384r1