Example usage for org.bouncycastle.jcajce.provider.asymmetric.ecgost BCECGOST3410PublicKey getAlgorithm

List of usage examples for org.bouncycastle.jcajce.provider.asymmetric.ecgost BCECGOST3410PublicKey getAlgorithm

Introduction

In this page you can find the example usage for org.bouncycastle.jcajce.provider.asymmetric.ecgost BCECGOST3410PublicKey getAlgorithm.

Prototype

public String getAlgorithm() 

Source Link

Usage

From source file:org.ejbca.core.ejb.ca.caadmin.CAsTest.java

License:Open Source License

private void checkECGOST3410Key(PublicKey pk) {
    if (pk instanceof BCECGOST3410PublicKey) {
        BCECGOST3410PublicKey gostpk = (BCECGOST3410PublicKey) pk;
        assertEquals("ECGOST3410", gostpk.getAlgorithm());
        org.bouncycastle.jce.spec.ECParameterSpec spec = gostpk.getParameters();
        assertNotNull("GOST3410 public key spec can't be null", spec);
    } else {/*w ww .java 2  s.  c  o  m*/
        assertTrue("Public key is not GOST3410: " + pk.getClass().getName(), false);
    }
}