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

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

Introduction

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

Prototype

public org.bouncycastle.jce.spec.ECParameterSpec getParameters() 

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 {/* www  .ja  v a  2 s.  c o m*/
        assertTrue("Public key is not GOST3410: " + pk.getClass().getName(), false);
    }
}