Best code examples for Java 8 RSAPublicKeySpec class (java.security.spec.RSAPublicKeySpec)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 RSAPublicKeySpec class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 RSAPublicKeySpec examples from Open Source projects
This code example shows how to use the following methods: getModulus, getPublicExponent
35:	import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; 
36:	import org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
101:	return (T) new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
180:	return privateKey.getPublicExponent().equals(publicKey.getPublicExponent()) 
181:	&& privateKey.getModulus().equals(publicKey.getModulus()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
35:	this.modulus = spec.getModulus(); 
36:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
41:	} 
42:	else if (spec.isAssignableFrom(RSAPrivateKeySpec.class) && key instanceof java.security.interfaces.RSAPrivateKey) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
72:	return KeyFactory.getInstance("RSA").generatePublic(new RSAPublicKeySpec(modulus, publicExponent)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
41:	this.modulus = spec.getModulus(); 
42:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
34:	this.modulus = spec.getModulus(); 
35:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getPublicExponent
87:	new RSAPublicKeySpec(BigInteger.valueOf(3L), 
-
89:	assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getPublicExponent
79:	new RSAPublicKeySpec(BigInteger.valueOf(3L), 
-
81:	assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
33:	this.modulus = spec.getModulus(); 
34:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
35:	this.modulus = spec.getModulus(); 
36:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
148:	RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
47:	KeySpec keySpec = new RSAPublicKeySpec(n, e); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
96:	return (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
70:	new BigInteger("010001",16)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
42:	else if (spec.isAssignableFrom(RSAPrivateKeySpec.class) && key instanceof java.security.interfaces.RSAPrivateKey) 
43:	{ 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
182:	RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
42:	this.modulus = spec.getModulus(); 
43:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
58:	RSAPublicKeySpec public_key_spec = new RSAPublicKeySpec(new BigInteger( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
333:	PublicKey   pubKey = f.generatePublic(new RSAPublicKeySpec(mod, pub)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
57:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
57:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
58:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
57:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
56:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
56:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
109:	RSAPublicKeySpec kspec = new RSAPublicKeySpec(bigModulus,bigEx); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
56:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
86:	return new RSAPublicKeySpec(k.getModulus(), k.getPublicExponent()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
55:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
82:	RSAPublicKeySpec rsaPublicKeySpec = new RSAPublicKeySpec( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
90:	RSAPublicKeySpec publicKeySpec = new java.security.spec.RSAPublicKeySpec( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
148:	RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
40:	return new RSAPublicKeySpec(k.getModulus(), k.getPublicExponent()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
39:	RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus, publicExponent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
148:	RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
47:	key = (RSAKey) gen.generatePublic(new RSAPublicKeySpec(n, e)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
72:	return KeyFactory.getInstance("RSA").generatePublic(new RSAPublicKeySpec(modulus, publicExponent)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
99:	generatePublic( new RSAPublicKeySpec(mod,exp)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
36:	n, e)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getModulus, getPublicExponent
51:	this.modulus = spec.getModulus(); 
52:	this.publicExponent = spec.getPublicExponent(); 
Full Snippet Info
5
CodeRank
Related Java 8 RSAPublicKeySpec Questions & Answers: