/*
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.security.*;
import javax.crypto.*;
import java.util.jar.JarException;

public class SignedProviderTest {

    public static boolean pass = true;

    public static void main(String[] args) throws Exception {
        try {
            System.out.println("Attempt to create a osigncipher instance");
            Cipher c = Cipher.getInstance("osigncipher");
            c.init(Cipher.ENCRYPT_MODE, (Key) null);
            System.out.println("Got cipher from provider: " +
                    c.getProvider().getInfo());
            System.out.println("Test passed");
        } catch (Exception e) {
            e.printStackTrace(System.out);
            pass = false;
        }

        System.out.println("");
    }
}
