public class SignaturePath extends Object
| Constructor and Description |
|---|
SignaturePath(DarcOCSProto.SignaturePath proto) |
SignaturePath(Darc darc,
Signer signer,
int role)
Overloaded method for convenience.
|
SignaturePath(List<Darc> darcPath,
Identity signer,
int role)
The role is the final role this signature should be used.
|
SignaturePath(List<Darc> darcPath,
Signer signer,
int role)
Overloaded method for convenience.
|
SignaturePath(Signer signer,
int role)
For creating online paths that don't inlcude the previous darcs
but that need the path to be verified by the verifier itself.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
List<Darc> |
getDarcs()
Returns a copy of the darc-list
|
List<DarcId> |
getPathIDs() |
byte[] |
getPathMsg()
Returns the path as an array of bytes.
|
Identity |
getSigner()
Returns the signer of this signature.
|
DarcOCSProto.SignaturePath |
toProto()
Creates a protobuf representation of this signature.
|
public static final int OWNER
public static final int USER
public SignaturePath(List<Darc> darcPath, Identity signer, int role)
darcPath - signer - role - public SignaturePath(List<Darc> darcPath, Signer signer, int role) throws CothorityCryptoException
darcPath - signer - role - CothorityCryptoExceptionpublic SignaturePath(Darc darc, Signer signer, int role) throws CothorityCryptoException
darc - signer - role - CothorityCryptoExceptionpublic SignaturePath(Signer signer, int role) throws CothorityCryptoException
signer - role - CothorityCryptoExceptionpublic SignaturePath(DarcOCSProto.SignaturePath proto) throws CothorityCryptoException
CothorityCryptoExceptionpublic byte[] getPathMsg()
throws CothorityCryptoException
CothorityCryptoExceptionpublic Identity getSigner()
public DarcOCSProto.SignaturePath toProto()
Copyright © 2018. All rights reserved.