Java Code Examples for java.security.spec.ECPrivateKeySpec#getParams()

The following examples show how to use java.security.spec.ECPrivateKeySpec#getParams() . 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: JCEECPrivateKey.java    From RipplePower with Apache License 2.0 5 votes vote down vote up
public JCEECPrivateKey(
    String              algorithm,
    ECPrivateKeySpec    spec)
{
    this.algorithm = algorithm;
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
}
 
Example 2
Source File: BCECPrivateKey.java    From RipplePower with Apache License 2.0 5 votes vote down vote up
public BCECPrivateKey(
    String algorithm,
    ECPrivateKeySpec spec,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
    this.configuration = configuration;
}
 
Example 3
Source File: JCEECPrivateKey.java    From ripple-lib-java with ISC License 5 votes vote down vote up
public JCEECPrivateKey(
    String              algorithm,
    ECPrivateKeySpec    spec)
{
    this.algorithm = algorithm;
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
}
 
Example 4
Source File: BCECPrivateKey.java    From ripple-lib-java with ISC License 5 votes vote down vote up
public BCECPrivateKey(
    String algorithm,
    ECPrivateKeySpec spec,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
    this.configuration = configuration;
}
 
Example 5
Source File: BCDSTU4145PrivateKey.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
public BCDSTU4145PrivateKey(
    ECPrivateKeySpec spec)
{
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
}
 
Example 6
Source File: BCECGOST3410PrivateKey.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
public BCECGOST3410PrivateKey(
    ECPrivateKeySpec spec)
{
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
}
 
Example 7
Source File: BCDSTU4145PrivateKey.java    From ripple-lib-java with ISC License 4 votes vote down vote up
public BCDSTU4145PrivateKey(
    ECPrivateKeySpec spec)
{
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
}
 
Example 8
Source File: BCECGOST3410PrivateKey.java    From ripple-lib-java with ISC License 4 votes vote down vote up
public BCECGOST3410PrivateKey(
    ECPrivateKeySpec spec)
{
    this.d = spec.getS();
    this.ecSpec = spec.getParams();
}