opencard.opt.security
Class DSAPublicKey
java.lang.Object
|
+--opencard.opt.security.DSAPublicKey
- public class DSAPublicKey
- extends java.lang.Object
- implements java.security.interfaces.DSAPublicKey
Contains a public DSA key.
Implements the java.security.interfaces.DSAPublicKey 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.
- See Also:
DSAPublicKey
, Serialized Form
Constructor Summary |
DSAPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
Produce a DSAPublicKey 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 |
getY()
Returns the value of the public key, y . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DSAPublicKey
public DSAPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
- Produce a DSAPublicKey from the given BigIntegers.
- Parameters:
q
- subprimep
- primeg
- basey
- public key
getAlgorithm
public java.lang.String getAlgorithm()
- Conformance to the java.security interface
- See Also:
PublicKey
getEncoded
public byte[] getEncoded()
- Conformance to the java.security interface
- See Also:
PublicKey
getFormat
public java.lang.String getFormat()
- Conformance to the java.security interface
- See Also:
PublicKey
getParams
public java.security.interfaces.DSAParams getParams()
- Returns the DSA-specific key parameters. These parameters are
never secret.
- Returns:
- the DSA-specific key parameters.
- See Also:
DSAParams
getY
public java.math.BigInteger getY()
- Returns the value of the public key,
y
.
- Specified by:
- getY in interface java.security.interfaces.DSAPublicKey
- Returns:
- the value of the public key,
y
.