public class SignUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NOT_SIGNED |
static int |
SIGN_FAIL |
static int |
SIGN_OK |
Modifier and Type | Method and Description |
---|---|
boolean |
canSign() |
boolean |
canVerify() |
void |
generateKeys() |
static void |
main(String[] args) |
void |
sign(File file) |
int |
verify(byte[] alldata) |
int |
verify(File file) |
public static final int SIGN_OK
public static final int SIGN_FAIL
public static final int NOT_SIGNED
public static void main(String[] args) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException, FileNotFoundException
public void sign(File file)
public int verify(File file)
public int verify(byte[] alldata)
public void generateKeys()
public boolean canSign()
public boolean canVerify()