Example usage for org.bouncycastle.crypto.params DSAKeyParameters DSAKeyParameters

List of usage examples for org.bouncycastle.crypto.params DSAKeyParameters DSAKeyParameters

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.params DSAKeyParameters DSAKeyParameters.

Prototype

public DSAKeyParameters(boolean isPrivate, DSAParameters params) 

Source Link

Usage

From source file:com.licel.jcardsim.crypto.DSAKeyImpl.java

License:Apache License

/**
 * Get <code>DSAKeyParameters</code>
 * @return parameters for use with BouncyCastle API
 * @see DSAKeyParameters/*  w w  w  .  j  ava 2 s  .  com*/
 */
public CipherParameters getParameters() {
    if (!isInitialized()) {
        CryptoException.throwIt(CryptoException.UNINITIALIZED_KEY);
    }
    return new DSAKeyParameters(isPrivate,
            new DSAParameters(p.getBigInteger(), q.getBigInteger(), g.getBigInteger()));
}