Example usage for org.bouncycastle.pkcs PKCSException PKCSException

List of usage examples for org.bouncycastle.pkcs PKCSException PKCSException

Introduction

In this page you can find the example usage for org.bouncycastle.pkcs PKCSException PKCSException.

Prototype

public PKCSException(String msg) 

Source Link

Usage

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")));
}