Example usage for org.bouncycastle.crypto.params RSAKeyParameters isPrivate

List of usage examples for org.bouncycastle.crypto.params RSAKeyParameters isPrivate

Introduction

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

Prototype

public boolean isPrivate() 

Source Link

Usage

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

License:Apache License

/**
 * Construct and initialize rsa key with RSAKeyParameters. Use in
 * KeyPairImpl/*  w  w  w  .  j  a v  a  2  s  . c  o  m*/
 *
 * @see javacard.security.KeyPair
 * @see RSAKeyParameters
 * @param params key params from BouncyCastle API
 */
public RSAKeyImpl(RSAKeyParameters params) {
    this(params.isPrivate(), (short) params.getModulus().bitLength());
    setParameters(params);
}