Package org.biscuitsec.biscuit.token
Class ThirdPartyBlockRequest
- java.lang.Object
-
- org.biscuitsec.biscuit.token.ThirdPartyBlockRequest
-
public class ThirdPartyBlockRequest extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vavr.control.Either<Error.FormatError,ThirdPartyBlockContents>createBlock(KeyPair keyPair, Block blockBuilder)static ThirdPartyBlockRequestdeserialize(Schema.ThirdPartyBlockRequest b)booleanequals(Object o)static ThirdPartyBlockRequestfromBytes(byte[] slice)inthashCode()Schema.ThirdPartyBlockRequestserialize()byte[]toBytes()StringtoString()
-
-
-
Method Detail
-
createBlock
public io.vavr.control.Either<Error.FormatError,ThirdPartyBlockContents> createBlock(KeyPair keyPair, Block blockBuilder) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException
-
serialize
public Schema.ThirdPartyBlockRequest serialize() throws Error.FormatError.SerializationError
-
deserialize
public static ThirdPartyBlockRequest deserialize(Schema.ThirdPartyBlockRequest b) throws Error.FormatError.DeserializationError
-
fromBytes
public static ThirdPartyBlockRequest fromBytes(byte[] slice) throws com.google.protobuf.InvalidProtocolBufferException, Error.FormatError.DeserializationError
- Throws:
com.google.protobuf.InvalidProtocolBufferExceptionError.FormatError.DeserializationError
-
toBytes
public byte[] toBytes() throws IOException, Error.FormatError.SerializationError
-
-