public class SignUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NOT_SIGNED |
static int |
SIGN_FAIL |
static int |
SIGN_OK |
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()