Java Code Examples for java.security.InvalidAlgorithmParameterException#getMessage()
The following examples show how to use
java.security.InvalidAlgorithmParameterException#getMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RsaProvider.java From lams with GNU General Public License v2.0 | 5 votes |
protected void setParameter(Signature sig, PSSParameterSpec spec) { try { doSetParameter(sig, spec); } catch (InvalidAlgorithmParameterException e) { String msg = "Unsupported RSASSA-PSS parameter '" + spec + "': " + e.getMessage(); throw new SignatureException(msg, e); } }
Example 2
Source File: InvalidAlgorithmParameterExceptionTest.java From j2objc with Apache License 2.0 | 5 votes |
/** * Test for <code>InvalidAlgorithmParameterException(Throwable)</code> * constructor Assertion: constructs InvalidAlgorithmParameterException when * <code>cause</code> is not null */ public void testInvalidAlgorithmParameterException05() { InvalidAlgorithmParameterException tE = new InvalidAlgorithmParameterException( tCause); if (tE.getMessage() != null) { String toS = tCause.toString(); String getM = tE.getMessage(); assertTrue("getMessage() should contain ".concat(toS), (getM .indexOf(toS) != -1)); } assertNotNull("getCause() must not return null", tE.getCause()); assertEquals("getCause() must return ".concat(tCause.toString()), tE .getCause(), tCause); }
Example 3
Source File: InvalidAlgorithmParameterExceptionTest.java From j2objc with Apache License 2.0 | 5 votes |
/** * Test for * <code>InvalidAlgorithmParameterException(String, Throwable)</code> * constructor Assertion: constructs InvalidAlgorithmParameterException when * <code>cause</code> is not null <code>msg</code> is null */ public void testInvalidAlgorithmParameterException08() { InvalidAlgorithmParameterException tE = new InvalidAlgorithmParameterException( null, tCause); if (tE.getMessage() != null) { String toS = tCause.toString(); String getM = tE.getMessage(); assertTrue("getMessage() must should ".concat(toS), (getM .indexOf(toS) != -1)); } assertNotNull("getCause() must not return null", tE.getCause()); assertEquals("getCause() must return ".concat(tCause.toString()), tE .getCause(), tCause); }
Example 4
Source File: BrokenJCEBlockCipher.java From RipplePower with Apache License 2.0 | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new IllegalArgumentException(e.getMessage()); } }
Example 5
Source File: BaseBlockCipher.java From RipplePower with Apache License 2.0 | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new InvalidKeyException(e.getMessage()); } }
Example 6
Source File: BaseWrapCipher.java From RipplePower with Apache License 2.0 | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new IllegalArgumentException(e.getMessage()); } }
Example 7
Source File: BaseStreamCipher.java From RipplePower with Apache License 2.0 | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new InvalidKeyException(e.getMessage()); } }
Example 8
Source File: RsaProvider.java From jjwt with Apache License 2.0 | 5 votes |
protected void setParameter(Signature sig, PSSParameterSpec spec) { try { doSetParameter(sig, spec); } catch (InvalidAlgorithmParameterException e) { String msg = "Unsupported RSASSA-PSS parameter '" + spec + "': " + e.getMessage(); throw new SignatureException(msg, e); } }
Example 9
Source File: BrokenJCEBlockCipher.java From ripple-lib-java with ISC License | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new IllegalArgumentException(e.getMessage()); } }
Example 10
Source File: BaseBlockCipher.java From ripple-lib-java with ISC License | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new InvalidKeyException(e.getMessage()); } }
Example 11
Source File: BaseWrapCipher.java From ripple-lib-java with ISC License | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new IllegalArgumentException(e.getMessage()); } }
Example 12
Source File: BaseStreamCipher.java From ripple-lib-java with ISC License | 5 votes |
protected void engineInit( int opmode, Key key, SecureRandom random) throws InvalidKeyException { try { engineInit(opmode, key, (AlgorithmParameterSpec)null, random); } catch (InvalidAlgorithmParameterException e) { throw new InvalidKeyException(e.getMessage()); } }