Java Code Examples for java.security.spec.RSAPrivateKeySpec#getModulus()

The following examples show how to use java.security.spec.RSAPrivateKeySpec#getModulus() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IosRSAKey.java    From j2objc with Apache License 2.0 4 votes vote down vote up
public IosRSAPrivateKey(RSAPrivateKeySpec spec) {
  super(spec.getModulus());
  this.privateExponent = spec.getPrivateExponent();
}
 
Example 2
Source File: JCERSAPrivateKey.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
JCERSAPrivateKey(
    RSAPrivateKeySpec spec)
{
    this.modulus = spec.getModulus();
    this.privateExponent = spec.getPrivateExponent();
}
 
Example 3
Source File: BCRSAPrivateKey.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
BCRSAPrivateKey(
    RSAPrivateKeySpec spec)
{
    this.modulus = spec.getModulus();
    this.privateExponent = spec.getPrivateExponent();
}
 
Example 4
Source File: JCERSAPrivateKey.java    From ripple-lib-java with ISC License 4 votes vote down vote up
JCERSAPrivateKey(
    RSAPrivateKeySpec spec)
{
    this.modulus = spec.getModulus();
    this.privateExponent = spec.getPrivateExponent();
}
 
Example 5
Source File: BCRSAPrivateKey.java    From ripple-lib-java with ISC License 4 votes vote down vote up
BCRSAPrivateKey(
    RSAPrivateKeySpec spec)
{
    this.modulus = spec.getModulus();
    this.privateExponent = spec.getPrivateExponent();
}