|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ dsa overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.jce.provider.dsa
Class DSAPrivateKeyImpl

java.lang.Objectcryptix.jce.provider.dsa.DSAPrivateKeyImpl
- All Implemented Interfaces:
- java.security.interfaces.DSAKey, java.security.interfaces.DSAPrivateKey, java.security.Key, java.security.PrivateKey, java.io.Serializable
- final class DSAPrivateKeyImpl
- extends java.lang.Object
- implements java.security.interfaces.DSAPrivateKey
- extends java.lang.Object
Private key for DSA. No parameter checking is done.
Field Summary | |
private java.security.interfaces.DSAParams |
params
DSA parameters (g, q, p) |
static long |
serialVersionUID
|
private java.math.BigInteger |
x
Private value y |
Constructor Summary | |
(package private) |
DSAPrivateKeyImpl(java.math.BigInteger x,
java.security.interfaces.DSAParams params)
Construct a public key from the given values. |
Method Summary | |
java.lang.String |
getAlgorithm()
This method returns the name of the algorithm for this key. |
byte[] |
getEncoded()
This method returns the encoded form of the key. |
java.lang.String |
getFormat()
This method returns the name of the encoding format for this key. |
java.security.interfaces.DSAParams |
getParams()
Return DSA parameters (g,q, p). |
java.math.BigInteger |
getX()
Returns private value X. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
x
private final java.math.BigInteger x
- Private value y
params
private final java.security.interfaces.DSAParams params
- DSA parameters (g, q, p)
Constructor Detail |
DSAPrivateKeyImpl
DSAPrivateKeyImpl(java.math.BigInteger x, java.security.interfaces.DSAParams params)
- Construct a public key from the given values.
No parameter checking is done.
Method Detail |
getX
public java.math.BigInteger getX()
- Returns private value X.
- Specified by:
getX
in interfacejava.security.interfaces.DSAPrivateKey
getParams
public java.security.interfaces.DSAParams getParams()
- Return DSA parameters (g,q, p).
- Specified by:
getParams
in interfacejava.security.interfaces.DSAKey
getAlgorithm
public java.lang.String getAlgorithm()
- Description copied from interface:
java.security.Key
- This method returns the name of the algorithm for this key. This is a
String
such as "RSA".- Specified by:
getAlgorithm
in interfacejava.security.Key
getFormat
public java.lang.String getFormat()
- Description copied from interface:
java.security.Key
- This method returns the name of the encoding format for this key. This
is the name of the ASN.1 data format used for this key, such as
"X.509" or "PKCS#8". This method returns
null
if this key does not have an encoding format.- Specified by:
getFormat
in interfacejava.security.Key
getEncoded
public byte[] getEncoded()
- Description copied from interface:
java.security.Key
- This method returns the encoded form of the key. If this key does not
support encoding, this method returns
null
.- Specified by:
getEncoded
in interfacejava.security.Key
|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ dsa overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |