VirgilAccessTokenSigner { public boolean verifyTokenSignature(byte[] signature, byte[] data, VirgilPublicKey publicKey) throws CryptoException { if (publicKey == null) { throw new NullArgumentException("publicKey"); } return virgilCrypto.verifySignature(signature, data, publicKey); } VirgilAccessTokenSigner();  VirgilAccessTokenSigner(VirgilCrypto virgilCrypto); byte[] generateTokenSignature(byte[] token, VirgilPrivateKey privateKey); String getAlgorithm(); VirgilCrypto getVirgilCrypto(); boolean verifyTokenSignature(byte[] signature, byte[] data, VirgilPublicKey publicKey);  }
@Test public void verifyTokenSignature() throws CryptoException { byte[] signature = this.signer.generateTokenSignature(TOKEN, this.privateKey); assertTrue(this.signer.verifyTokenSignature(signature, TOKEN, this.publicKey)); }