Code examples for RSAPublicKeySpec

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.
35:	import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; 
36:	import org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure; 
Full Snippet Info
7
CodeRank
101:	return (T) new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
6
CodeRank
180:	return privateKey.getPublicExponent().equals(publicKey.getPublicExponent()) 
181:	&& privateKey.getModulus().equals(publicKey.getModulus()); 
Full Snippet Info
6
CodeRank
35:	this.modulus = spec.getModulus(); 
36:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
6
CodeRank
41:	} 
42:	else if (spec.isAssignableFrom(RSAPrivateKeySpec.class) && key instanceof java.security.interfaces.RSAPrivateKey) 
Full Snippet Info
6
CodeRank
72:	return KeyFactory.getInstance("RSA").generatePublic(new RSAPublicKeySpec(modulus, publicExponent)); 
Full Snippet Info
6
CodeRank
41:	this.modulus = spec.getModulus(); 
42:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
6
CodeRank
34:	this.modulus = spec.getModulus(); 
35:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
6
CodeRank
87:	new RSAPublicKeySpec(BigInteger.valueOf(3L), 
-
89:	assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent())); 
Full Snippet Info
5
CodeRank
79:	new RSAPublicKeySpec(BigInteger.valueOf(3L), 
-
81:	assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent())); 
Full Snippet Info
5
CodeRank
33:	this.modulus = spec.getModulus(); 
34:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
35:	this.modulus = spec.getModulus(); 
36:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
148:	RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec 
Full Snippet Info
5
CodeRank
47:	KeySpec keySpec = new RSAPublicKeySpec(n, e); 
Full Snippet Info
5
CodeRank
96:	return (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); 
Full Snippet Info
5
CodeRank
70:	new BigInteger("010001",16)); 
Full Snippet Info
5
CodeRank
42:	else if (spec.isAssignableFrom(RSAPrivateKeySpec.class) && key instanceof java.security.interfaces.RSAPrivateKey) 
43:	{ 
Full Snippet Info
5
CodeRank
182:	RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec( 
Full Snippet Info
5
CodeRank
42:	this.modulus = spec.getModulus(); 
43:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
58:	RSAPublicKeySpec public_key_spec = new RSAPublicKeySpec(new BigInteger( 
Full Snippet Info
5
CodeRank