|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.x509.AlgorithmId | +--com.ibm.security12.sun.security.x509.AlgIdDSA
This class identifies DSS/DSA Algorithm variants, which are distinguished by using different algorithm parameters P, Q, G. It uses the NIST/IETF standard DER encoding. These are used to implement the Digital Signature Standard (DSS), FIPS 186.
NOTE: At this time, DSS/DSA Algorithm IDs must always include these parameters. Use of DSS/DSA in modes where parameters are either implicit (e.g. a default applicable to a site or a larger scope), or are derived from some Certificate Authority's DSS certificate, is not currently supported.
Fields inherited from class com.ibm.security12.sun.security.x509.AlgorithmId |
DH_oid,
DH_PKIX_oid,
DSA_oid,
DSA_OIW_oid,
MD2_oid,
md2WithRSAEncryption_oid,
MD5_oid,
md5WithRSAEncryption_oid,
params,
RSA_oid,
RSAEncryption_oid,
SHA_oid,
sha1WithDSA_oid,
sha1WithDSA_OIW_oid,
sha1WithRSAEncryption_oid,
sha1WithRSAEncryption_OIW_oid,
shaWithDSA_OIW_oid |
Constructor Summary | |
AlgIdDSA()
Default constructor. |
|
AlgIdDSA(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Constructs a DSS/DSA Algorithm ID from numeric parameters. |
|
AlgIdDSA(byte[] encodedAlg)
Construct an AlgIdDSA from an X.509 encoded byte array. |
|
AlgIdDSA(byte[] p,
byte[] q,
byte[] g)
Constructs a DSS/DSA Algorithm ID from unsigned integers that define the algorithm parameters. |
|
AlgIdDSA(DerValue val)
|
Method Summary | |
protected void |
decodeParams()
Parses algorithm parameters P, Q, and G. |
java.math.BigInteger |
getG()
Returns the DSS/DSA parameter "G" |
String |
getName()
Returns "DSA", indicating the Digital Signature Algorithm (DSA) as defined by the Digital Signature Standard (DSS), FIPS 186. |
java.math.BigInteger |
getP()
Returns the DSS/DSA parameter "P" |
java.math.BigInteger |
getQ()
Returns the DSS/DSA parameter "Q" |
protected String |
paramsToString()
|
String |
toString()
|
Methods inherited from class com.ibm.security12.sun.security.x509.AlgorithmId |
derEncode,
encode,
encode,
equals,
equals,
equals,
get,
getAlgorithmId,
getEncodedParams,
getOID,
getParameters,
parse |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AlgIdDSA()
public AlgIdDSA(DerValue val) throws IOException
public AlgIdDSA(byte[] encodedAlg) throws IOException
public AlgIdDSA(byte[] p, byte[] q, byte[] g) throws IOException
p
- the DSS/DSA paramter "P"q
- the DSS/DSA paramter "Q"g
- the DSS/DSA paramter "G"public AlgIdDSA(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
p
- the DSS/DSA paramter "P"q
- the DSS/DSA paramter "Q"g
- the DSS/DSA paramter "G"Method Detail |
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getG()
public String getName()
protected void decodeParams() throws IOException
public String toString()
protected String paramsToString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |