blob: a95501e7708c6409cb7119abe7821415bfda7152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* GENERATED SOURCE. DO NOT MODIFY. */
package com.android.org.bouncycastle.jcajce.spec;
import java.math.BigInteger;
import javax.crypto.spec.DHParameterSpec;
import javax.crypto.spec.DHPublicKeySpec;
/**
* A DHPublicKeySpec that also carries a set of DH domain parameters.
* @hide This class is not part of the Android public SDK API
*/
public class DHExtendedPublicKeySpec
extends DHPublicKeySpec
{
private final DHParameterSpec params;
/**
* Base constructor.
*
* @param y the public value.
* @param params the domain parameter set.
*/
public DHExtendedPublicKeySpec(BigInteger y, DHParameterSpec params)
{
super(y, params.getP(), params.getG());
this.params = params;
}
/**
* Return the domain parameters associated with this key spec.
*
* @return the Diffie-Hellman domain parameters.
*/
public DHParameterSpec getParams()
{
return params;
}
}
|