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