Code examples for PublicKey

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.
77:	byte[]  bytes = publicKey.getEncoded(); 
Full Snippet Info
7
CodeRank
130:	assertEquals("0.3.5", key.getAlgorithm()); 
131:	assertEquals("X.509", key.getFormat()); 
132:	assertTrue(Arrays.equals(enc, key.getEncoded())); 
133:	assertNotNull(key.toString()); 
Full Snippet Info
7
CodeRank
62:	byte[] bytes = publicKey.getEncoded(); 
Full Snippet Info
7
CodeRank
82:	return key.getAlgorithm(); 
-
86:	return key.getFormat(); 
-
90:	return key.getEncoded(); 
Full Snippet Info
6
CodeRank
27:	byte[] encPubKey = pubKey.getEncoded(); 
-
37:	assertEquals(pubKey, decPubKey); 
Full Snippet Info
6
CodeRank
159:	byte[] encoded = publicKey.getEncoded(); 
Full Snippet Info
6
CodeRank
386:	return pem(key.getEncoded(), marker); 
Full Snippet Info
6
CodeRank
118:	if (!pubKey.getAlgorithm().equals("DSA")) 
Full Snippet Info
6
CodeRank
358:	else if (issPub.getAlgorithm().equals("DSA")) 
-
362:	else if (issPub.getAlgorithm().equals("ECDSA")) 
-
366:	else if (issPub.getAlgorithm().equals("ECGOST3410")) 
-
380:	_cert.verify(issPub); 
Full Snippet Info
6
CodeRank
306:	byte[] pubKeyBytes = pubKey.getEncoded(); 
-
313:	assertEquals(pubKey.hashCode(), publicKeyKF.hashCode()); 
Full Snippet Info
6
CodeRank
115:	bw.append(serverKey.getAlgorithm()); 
-
117:	serverKey.getEncoded(); 
118:	bw.append(new String(Base64.encodeBase64(serverKey.getEncoded()), 
Full Snippet Info
5
CodeRank
79:	LOG.debug("Public key: {}", publicKey); 
80:	LOG.debug("Public key algo: {}", publicKey.getAlgorithm()); 
81:	LOG.debug("Public key format: {}", publicKey.getFormat()); 
Full Snippet Info
5
CodeRank
16:	super(SubjectPublicKeyInfo.getInstance(key.getEncoded()), digCalc); 
Full Snippet Info
6
CodeRank
33:	cipher = Cipher.getInstance(publicKey.getAlgorithm()); 
Full Snippet Info
5
CodeRank
123:	new ByteArrayInputStream(key.getEncoded())).readObject())); 
Full Snippet Info
5
CodeRank
24:	super(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()), digCalc); 
Full Snippet Info
6
CodeRank
237:	if (thisKey.equals(thatKey)) 
-
240:	return Arrays.equals(thisKey.getEncoded(), thatKey.getEncoded()); 
Full Snippet Info
5
CodeRank
83:	List transforms) { 
Full Snippet Info
5
CodeRank
25:	super(subject, SubjectPublicKeyInfo.getInstance(publicKey.getEncoded())); 
Full Snippet Info
6
CodeRank
181:	summary_bytes.write(mEncodingStateFor.getEncoded()); 
Full Snippet Info
5
CodeRank