Package org.biscuitsec.biscuit.crypto
Class PublicKey
- java.lang.Object
-
- org.biscuitsec.biscuit.crypto.PublicKey
-
public class PublicKey extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Schema.PublicKey.Algorithmalgorithmnet.i2p.crypto.eddsa.EdDSAPublicKeykey
-
Constructor Summary
Constructors Constructor Description PublicKey(Schema.PublicKey.Algorithm algorithm, byte[] data)PublicKey(Schema.PublicKey.Algorithm algorithm, String hex)PublicKey(Schema.PublicKey.Algorithm algorithm, net.i2p.crypto.eddsa.EdDSAPublicKey public_key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeydeserialize(Schema.PublicKey pk)booleanequals(Object o)inthashCode()Schema.PublicKeyserialize()byte[]toBytes()StringtoHex()StringtoString()
-
-
-
Field Detail
-
key
public final net.i2p.crypto.eddsa.EdDSAPublicKey key
-
algorithm
public final Schema.PublicKey.Algorithm algorithm
-
-
Constructor Detail
-
PublicKey
public PublicKey(Schema.PublicKey.Algorithm algorithm, net.i2p.crypto.eddsa.EdDSAPublicKey public_key)
-
PublicKey
public PublicKey(Schema.PublicKey.Algorithm algorithm, byte[] data)
-
PublicKey
public PublicKey(Schema.PublicKey.Algorithm algorithm, String hex)
-
-
Method Detail
-
toBytes
public byte[] toBytes()
-
toHex
public String toHex()
-
serialize
public Schema.PublicKey serialize()
-
deserialize
public static PublicKey deserialize(Schema.PublicKey pk) throws Error.FormatError.DeserializationError
-
-