List of usage examples for org.bouncycastle.pkcs PKCSException PKCSException
public PKCSException(String msg)
From source file:com.yahoo.athenz.auth.util.CryptoExceptionTest.java
License:Apache License
@Test public void testCryptoExceptions() { CryptoException ex = new CryptoException(); assertNotNull(ex);/*from ww w .j a v a 2s.c o m*/ assertNotNull(new CryptoException(new NoSuchAlgorithmException())); assertNotNull(new CryptoException(new InvalidKeyException())); assertNotNull(new CryptoException(new NoSuchProviderException())); assertNotNull(new CryptoException(new SignatureException())); assertNotNull(new CryptoException(new FileNotFoundException())); assertNotNull(new CryptoException(new IOException())); assertNotNull(new CryptoException(new CertificateException())); assertNotNull(new CryptoException(new InvalidKeySpecException())); assertNotNull(new CryptoException(new OperatorCreationException("unit-test"))); assertNotNull(new CryptoException(new PKCSException("unit-test"))); assertNotNull(new CryptoException(new CMSException("unit-test"))); }