List of usage examples for org.bouncycastle.crypto.params DSAKeyParameters DSAKeyParameters
public DSAKeyParameters(boolean isPrivate, DSAParameters params)
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())); }