Package us.donut.mmc
Class Account.Certificate
- java.lang.Object
-
- us.donut.mmc.Account.Certificate
-
-
Constructor Summary
Constructors Constructor Description Certificate(PrivateKey privateKey, PublicKey publicKey, byte[] publicKeySig, long expiration)Constructs a new certificate object with the given fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetExpiration()PrivateKeygetPrivateKey()PublicKeygetPublicKey()byte[]getPublicKeySig()inthashCode()
-
-
-
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 keypublicKey- the public keypublicKeySig- the public key signatureexpiration- the expiration date (millis)
-
-
Method Detail
-
getPrivateKey
public PrivateKey getPrivateKey()
-
getPublicKey
public PublicKey getPublicKey()
-
getPublicKeySig
public byte[] getPublicKeySig()
-
getExpiration
public long getExpiration()
-
-