|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.opt.security.DSAPrivateKey
public class DSAPrivateKey
Contains a public DSA key. Implements the java.security.interfaces.DSAPrivateKey interface CardServices using PKA algorithms like SignatureCardService require keys implementing the PrivateKey/PublicKey interface. In this package OpenCard provides key classes for common algorithms like RSA, DSA (or DES) that each concrete card service implementing a card service interface should support instead of defining its own key classes. Only for new PKA algorithms that OpenCard does not yet support a card service may define its own key classes.
DSAPrivateKey
,
Serialized FormField Summary |
---|
Fields inherited from interface java.security.interfaces.DSAPrivateKey |
---|
serialVersionUID |
Constructor Summary | |
---|---|
DSAPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x)
Produce an DSAPrivateKey from the given BigIntegers. |
Method Summary | |
---|---|
java.lang.String |
getAlgorithm()
Conformance to the java.security interface |
byte[] |
getEncoded()
Conformance to the java.security interface |
java.lang.String |
getFormat()
Conformance to the java.security interface |
java.security.interfaces.DSAParams |
getParams()
Returns the DSA-specific key parameters. |
java.math.BigInteger |
getX()
Returns the value of the private key, x . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSAPrivateKey(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger x)
q
- subprimep
- primeg
- basex
- private keyMethod Detail |
---|
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
PublicKey
public byte[] getEncoded()
getEncoded
in interface java.security.Key
PublicKey
public java.lang.String getFormat()
getFormat
in interface java.security.Key
PublicKey
public java.security.interfaces.DSAParams getParams()
getParams
in interface java.security.interfaces.DSAKey
DSAParams
public java.math.BigInteger getX()
x
.
getX
in interface java.security.interfaces.DSAPrivateKey
x
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |