Example usage for org.bouncycastle.operator RuntimeOperatorException RuntimeOperatorException

List of usage examples for org.bouncycastle.operator RuntimeOperatorException RuntimeOperatorException

Introduction

In this page you can find the example usage for org.bouncycastle.operator RuntimeOperatorException RuntimeOperatorException.

Prototype

public RuntimeOperatorException(String msg, Throwable cause) 

Source Link

Usage

From source file:org.xipki.commons.security.SignatureSigner.java

License:Open Source License

@Override
public OutputStream getOutputStream() {
    try {/*  ww w .  j  a v  a 2s. co  m*/
        signer.initSign(key);
    } catch (InvalidKeyException ex) {
        throw new RuntimeOperatorException("could not initSign", ex);
    }
    return stream;
}

From source file:org.xipki.commons.security.SignatureSigner.java

License:Open Source License

@Override
public byte[] getSignature() {
    try {/* w w w. j  av  a 2  s  . c o  m*/
        return stream.getSignature();
    } catch (SignatureException ex) {
        throw new RuntimeOperatorException("exception obtaining signature: " + ex.getMessage(), ex);
    }
}

From source file:org.xipki.security.SignatureSigner.java

License:Open Source License

@Override
public OutputStream getOutputStream() {
    try {/*from www  .j  a  va 2  s  .  c  o  m*/
        signer.initSign(key);
    } catch (InvalidKeyException e) {
        throw new RuntimeOperatorException("could not initSign", e);
    }
    return stream;
}

From source file:org.xipki.security.SignatureSigner.java

License:Open Source License

@Override
public byte[] getSignature() {
    try {//from  w w w  .j  a  v  a2 s . c  o m
        return stream.getSignature();
    } catch (SignatureException e) {
        throw new RuntimeOperatorException("exception obtaining signature: " + e.getMessage(), e);
    }
}