Package us.donut.mmc

Class Account.Certificate

  • Enclosing class:
    Account

    public static class Account.Certificate
    extends Object
    Represents a player certificate which consists of the Mojang provided key-pair used for cryptographically signing chat messages.
    • Constructor Detail

      • Certificate

        public Certificate​(PrivateKey privateKey,
                           PublicKey publicKey,
                           byte[] publicKeySig,
                           long expiration)
        Constructs a new certificate object with the given fields.
        Parameters:
        privateKey - the private key
        publicKey - the public key
        publicKeySig - the public key signature
        expiration - the expiration date (millis)
    • Method Detail

      • getPrivateKey

        public PrivateKey getPrivateKey()
      • getPublicKey

        public PublicKey getPublicKey()
      • getPublicKeySig

        public byte[] getPublicKeySig()
      • getExpiration

        public long getExpiration()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object