Code examples for Signature

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
39:	AlgorithmParameters  sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signature.getProvider()); 
-
50:	if (signature.getAlgorithm().endsWith("MGF1")) 
-
54:	signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class)); 
Full Snippet Info
8
CodeRank
39:	AlgorithmParameters  sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signature.getProvider()); 
-
50:	if (signature.getAlgorithm().endsWith("MGF1")) 
-
54:	signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class)); 
Full Snippet Info
8
CodeRank
177:	sgr.initSign(sKey, k); 
-
179:	sgr.update(message); 
-
181:	byte[]  sigBytes = sgr.sign(); 
-
183:	sgr.initVerify(vKey); 
-
185:	sgr.update(message); 
-
187:	if (!sgr.verify(sigBytes)) 
Full Snippet Info
7
CodeRank
31:	signature.initSign(privateKey); 
-
33:	signature.update(plainBytes); 
34:	signedBytes = signature.sign(); 
Full Snippet Info
7
CodeRank
112:	detSigner.initSign(privKey); 
-
114:	detSigner.update(data, 0, data.length); 
-
116:	byte[] m = detSigner.sign(); 
Full Snippet Info
7
CodeRank
107:	sig.initSign(keyPair.getPrivate()); 
108:	sig.update(DATA); 
109:	byte[] signature = sig.sign(); 
110:	assertNotNull(sig.getAlgorithm(), signature); 
111:	assertTrue(sig.getAlgorithm(), signature.length > 0); 
-
113:	sig.initVerify(keyPair.getPublic()); 
114:	sig.update(DATA); 
115:	assertTrue(sig.getAlgorithm(), sig.verify(signature)); 
-
118:	sig.update(DATA); 
119:	assertTrue(sig.getAlgorithm(), sig.verify(signature)); 
-
123:	sig.verify(signature); 
Full Snippet Info
6
CodeRank
31:	signature.initSign(privateKey); 
-
33:	signature.update(plainBytes); 
34:	signedBytes = signature.sign(); 
Full Snippet Info
7
CodeRank
177:	sgr.initSign(sKey, k); 
-
179:	sgr.update(message); 
-
181:	byte[]  sigBytes = sgr.sign(); 
-
183:	sgr.initVerify(vKey); 
-
185:	sgr.update(message); 
-
187:	if (!sgr.verify(sigBytes)) 
Full Snippet Info
6
CodeRank
36:	sig.initSign(signingKey); 
37:	sig.update(stringToBeSigned.getBytes()); 
38:	return sig.sign(); 
Full Snippet Info
6
CodeRank
37:	AlgorithmParameters  sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signature.getProvider()); 
-
48:	if (signature.getAlgorithm().endsWith("MGF1")) 
-
52:	signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class)); 
Full Snippet Info
7
CodeRank
383:	sgr.initSign(sKey, k); 
-
385:	sgr.update(message); 
-
387:	byte[]  sigBytes = sgr.sign(); 
-
394:	sgr.initVerify(vKey); 
-
396:	sgr.update(message); 
-
398:	if (!sgr.verify(sigBytes)) 
Full Snippet Info
6
CodeRank
228:	sig.initVerify(pk); 
229:	sig.update(message); 
230:	valid = sig.verify(signature); 
Full Snippet Info
6
CodeRank
107:	sig.initSign(keyPair.getPrivate()); 
108:	sig.update(DATA); 
109:	byte[] signature = sig.sign(); 
110:	assertNotNull(sig.getAlgorithm(), signature); 
111:	assertTrue(sig.getAlgorithm(), signature.length > 0); 
-
113:	sig.initVerify(keyPair.getPublic()); 
114:	sig.update(DATA); 
115:	assertTrue(sig.getAlgorithm(), sig.verify(signature)); 
-
118:	sig.update(DATA); 
119:	assertTrue(sig.getAlgorithm(), sig.verify(signature)); 
-
123:	sig.verify(signature); 
Full Snippet Info
6
CodeRank
31:	signature.initSign(privateKey); 
-
33:	signature.update(plainBytes); 
34:	signedBytes = signature.sign(); 
Full Snippet Info
6
CodeRank
246:	rawSignature.update(digest); 
-
248:	return rawSignature.verify(expected); 
Full Snippet Info
6
CodeRank
31:	signature.initSign(privateKey); 
-
33:	signature.update(plainBytes); 
34:	signedBytes = signature.sign(); 
Full Snippet Info
6
CodeRank
37:	AlgorithmParameters  sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signature.getProvider()); 
-
48:	if (signature.getAlgorithm().endsWith("MGF1")) 
-
52:	signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class)); 
Full Snippet Info
6
CodeRank
112:	detSigner.initSign(privKey); 
-
114:	detSigner.update(data, 0, data.length); 
-
116:	byte[] m = detSigner.sign(); 
Full Snippet Info
6
CodeRank
37:	AlgorithmParameters  sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signature.getProvider()); 
-
48:	if (signature.getAlgorithm().endsWith("MGF1")) 
-
52:	signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class)); 
Full Snippet Info
6
CodeRank
73:	signatureInstance.initSign(privateKey); 
74:	signatureInstance.update(message); 
75:	return signatureInstance.sign(); 
Full Snippet Info
6
CodeRank