public class SignUtil
extends java.lang.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(java.lang.String[] args) |
void |
sign(java.io.File file) |
int |
verify(byte[] alldata) |
int |
verify(java.io.File file) |
public static final int SIGN_OK
public static final int SIGN_FAIL
public static final int NOT_SIGNED
public static void main(java.lang.String[] args) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.spec.InvalidKeySpecException, java.io.FileNotFoundException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
java.security.spec.InvalidKeySpecException
java.io.FileNotFoundException
public void sign(java.io.File file)
public int verify(java.io.File file)
public int verify(byte[] alldata)
public void generateKeys()
public boolean canSign()
public boolean canVerify()