Code example for NoSuchAlgorithmException

0
    private OpenSSLSignature(String algorithm) throws NoSuchAlgorithmException {
        super(algorithm);
 
        // We don't support MD2 
        if ("RSA-MD2".equals(algorithm)) {
            throw new NoSuchAlgorithmException(algorithm);
        } 
 
        this.evpAlgorithm = algorithm;
    } 
 
    @Override 
    protected void engineUpdate(byte input) {
        singleByte[0] = input;
        engineUpdate(singleByte, 0, 1);
    } 
 
    @Override 
    protected void engineUpdate(byte[] input, int offset, int len) {
        if (state == SIGN) {
            throw new UnsupportedOperationException();