DSAPrivateKey
, AlgIdDSA
, DSA
Modifier and Type | Field and Description |
---|---|
private static final long | serialVersionUID
Hides sun. |
private BigInteger |
Access | Constructor and Description |
---|---|
public | |
public | DSAPublicKey(BigInteger
the actual key bits y, BigInteger DSA parameter p, may be null if all of p, q, and g are null. p, BigInteger DSA parameter q, may be null if all of p, q, and g are null. q, BigInteger DSA parameter g, may be null if all of p, q, and g are null. g)Make a DSA public key out of a public key and three parameters. |
public |
Modifier and Type | Method and Description |
---|---|
public DSAParams | getParams()
Overrides default java. Returns the DSA parameters associated with this key, or null if the parameters could not be parsed. |
public BigInteger | getY()
Implements java. Get the raw public value, y, without the parameters. |
protected void | |
public String | toString()
Overrides sun. Returns a string representation of the object. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides sun. use serialVersionUID from JDK 1.1. for interoperability |
y | back to summary |
---|---|
private BigInteger y |
DSAPublicKey | back to summary |
---|---|
public DSAPublicKey() |
DSAPublicKey | back to summary |
---|---|
public DSAPublicKey(BigInteger y, BigInteger p, BigInteger q, BigInteger g) Make a DSA public key out of a public key and three parameters. The p, q, and g parameters may be null, but if so, parameters will need to be supplied from some other source before this key can be used in cryptographic operations. PKIX RFC2459bis explicitly allows DSA public keys without parameters, where the parameters are provided in the issuer's DSA public key.
|
DSAPublicKey | back to summary |
---|---|
public DSAPublicKey(byte[] encoded) throws InvalidKeyException Make a DSA public key from its DER encoding (X.509).
|
getParams | back to summary |
---|---|
public DSAParams getParams() Overrides default java. Returns the DSA parameters associated with this key, or null if the parameters could not be parsed.
|
getY | back to summary |
---|---|
public BigInteger getY() Implements java. Get the raw public value, y, without the parameters.
|
parseKeyBits | back to summary |
---|---|
protected void parseKeyBits() throws InvalidKeyException Overrides sun. Doc from sun. Parse the key bits. This may be redefined by subclasses to take
advantage of structure within the key. For example, RSA public
keys encapsulate two unsigned integers (modulus and exponent) as
DER values within the This function is called when creating X.509 SubjectPublicKeyInfo
values using the X509Key member functions, such as
|
toString | back to summary |
---|---|
public String toString() Overrides sun. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|