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

The following examples show how to use java.security.spec.ECPublicKeySpec#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: JCEECPublicKey.java    From RipplePower with Apache License 2.0 5 votes vote down vote up
public JCEECPublicKey(
    String              algorithm,
    ECPublicKeySpec     spec)
{
    this.algorithm = algorithm;
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
}
 
Example 2
Source File: BCECPublicKey.java    From RipplePower with Apache License 2.0 5 votes vote down vote up
public BCECPublicKey(
    String algorithm,
    ECPublicKeySpec spec,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
    this.configuration = configuration;
}
 
Example 3
Source File: JCEECPublicKey.java    From ripple-lib-java with ISC License 5 votes vote down vote up
public JCEECPublicKey(
    String              algorithm,
    ECPublicKeySpec     spec)
{
    this.algorithm = algorithm;
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
}
 
Example 4
Source File: BCECPublicKey.java    From ripple-lib-java with ISC License 5 votes vote down vote up
public BCECPublicKey(
    String algorithm,
    ECPublicKeySpec spec,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
    this.configuration = configuration;
}
 
Example 5
Source File: BCDSTU4145PublicKey.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
public BCDSTU4145PublicKey(
    ECPublicKeySpec spec)
{
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
}
 
Example 6
Source File: BCECGOST3410PublicKey.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
public BCECGOST3410PublicKey(
    ECPublicKeySpec spec)
{
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
}
 
Example 7
Source File: BCDSTU4145PublicKey.java    From ripple-lib-java with ISC License 4 votes vote down vote up
public BCDSTU4145PublicKey(
    ECPublicKeySpec spec)
{
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
}
 
Example 8
Source File: BCECGOST3410PublicKey.java    From ripple-lib-java with ISC License 4 votes vote down vote up
public BCECGOST3410PublicKey(
    ECPublicKeySpec spec)
{
    this.ecSpec = spec.getParams();
    this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
}