Best code examples for Java 8 OAEPParameterSpec class (javax.crypto.spec.OAEPParameterSpec)

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

Java 8 OAEPParameterSpec examples from Open Source projects
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
45:	OAEPParameterSpec spec = new OAEPParameterSpec(mdName, "MGF1", 
-
65:	String alg1 = s1.getDigestAlgorithm().toUpperCase().trim(); 
-
80:	String alg1 = s1.getMGFAlgorithm(); 
-
83:	MGF1ParameterSpec mp1 = (MGF1ParameterSpec)s1.getMGFParameters(); 
-
101:	PSource src1 = s1.getPSource(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
45:	OAEPParameterSpec spec = new OAEPParameterSpec(mdName, "MGF1", 
-
65:	String alg1 = s1.getDigestAlgorithm().toUpperCase().trim(); 
-
80:	String alg1 = s1.getMGFAlgorithm(); 
-
83:	MGF1ParameterSpec mp1 = (MGF1ParameterSpec)s1.getMGFParameters(); 
-
101:	PSource src1 = s1.getPSource(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
286:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
291:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
296:	Digest digest = DigestFactory.getDigest(spec.getDigestAlgorithm()); 
-
300:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
303:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
311:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
27:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
281:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
286:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
291:	Digest digest = JCEDigestUtil.getDigest(spec.getDigestAlgorithm()); 
-
295:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
298:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
306:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
45:	OAEPParameterSpec spec = new OAEPParameterSpec(mdName, "MGF1", 
-
65:	String alg1 = s1.getDigestAlgorithm().toUpperCase().trim(); 
-
80:	String alg1 = s1.getMGFAlgorithm(); 
-
83:	MGF1ParameterSpec mp1 = (MGF1ParameterSpec)s1.getMGFParameters(); 
-
101:	PSource src1 = s1.getPSource(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
27:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
29:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
88:	OAEPParameterSpec spec2 = new OAEPParameterSpec(hashAlg, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
29:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
280:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
285:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
290:	Digest digest = JCEDigestUtil.getDigest(spec.getDigestAlgorithm()); 
-
294:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
297:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
305:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFAlgorithm, getMGFParameters, getPSource
318:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
323:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
328:	Digest digest = JCEDigestUtil.getDigest(spec.getDigestAlgorithm()); 
-
332:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
335:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
343:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFParameters, getPSource
57:	DigestFactory.getOID(currentSpec.getDigestAlgorithm()), 
-
61:	MGF1ParameterSpec mgfSpec = (MGF1ParameterSpec)currentSpec.getMGFParameters(); 
-
67:	PSource.PSpecified      pSource = (PSource.PSpecified)currentSpec.getPSource(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
29:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
27:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
27:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
86:	OAEPParameterSpec spec1 = new OAEPParameterSpec(hashAlg, 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
737:	bcCipher.init(Cipher.ENCRYPT_MODE, pubKey, new OAEPParameterSpec(digest, "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
86:	OAEPParameterSpec spec1 = new OAEPParameterSpec(hashAlg, 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getDigestAlgorithm, getMGFParameters, getPSource
1243:	JCEDigestUtil.getOID(currentSpec.getDigestAlgorithm()), 
-
1245:	MGF1ParameterSpec       mgfSpec = (MGF1ParameterSpec)currentSpec.getMGFParameters(); 
-
1250:	PSource.PSpecified      pSource = (PSource.PSpecified)currentSpec.getPSource(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
129:	new PSource.PSpecified(ASN1OctetString.getInstance(oaepP.getPSourceAlgorithm().getParameters()).getOctets())); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods:
1152:	new PSource.PSpecified(ASN1OctetString.getInstance(oaepP.getPSourceAlgorithm().getParameters()).getOctets())); 
Full Snippet Info
2
CodeRank
See Code Examples for Java 8 OAEPParameterSpec Methods: