java.lang.Object
cryptix.jce.provider.dsa.SignatureData
- class SignatureData
- extends java.lang.Object
Reads and writes DER encoded DSA signatures.
DSA signatures are encoded as a DER sequence
of two ASN.1 INTEGER values like this:
SEQUENCE { r INTEGER; s INTEGER }
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
r
private java.math.BigInteger r
s
private java.math.BigInteger s
SignatureData
public SignatureData(byte[] data)
throws java.security.SignatureException
- Initializes the parser with a DER sequence.
Use getR() and getS() to get the decoded numbers.
SignatureData
public SignatureData(java.math.BigInteger r,
java.math.BigInteger s)
throws java.security.SignatureException
- Initializes the parser with the two numbers r and s.
Use getData() to get the encoded DER sequence.
getR
public java.math.BigInteger getR()
- Returns the decoded r
getS
public java.math.BigInteger getS()
- Returns the decoded s
getData
public byte[] getData()
- Returns the encoded DER sequence