Package com.jcraft.jsch.jce
Class SignatureDSA
- java.lang.Object
-
- com.jcraft.jsch.jce.SignatureDSA
-
- All Implemented Interfaces:
Signature
,SignatureDSA
public class SignatureDSA extends Object implements SignatureDSA
-
-
Constructor Summary
Constructors Constructor Description SignatureDSA()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
protected byte[]
normalize(byte[] secret)
void
setPrvKey(byte[] x, byte[] p, byte[] q, byte[] g)
void
setPubKey(byte[] y, byte[] p, byte[] q, byte[] g)
byte[]
sign()
void
update(byte[] foo)
boolean
verify(byte[] sig)
-
-
-
Method Detail
-
init
public void init() throws Exception
-
setPubKey
public void setPubKey(byte[] y, byte[] p, byte[] q, byte[] g) throws Exception
- Specified by:
setPubKey
in interfaceSignatureDSA
- Throws:
Exception
-
setPrvKey
public void setPrvKey(byte[] x, byte[] p, byte[] q, byte[] g) throws Exception
- Specified by:
setPrvKey
in interfaceSignatureDSA
- Throws:
Exception
-
sign
public byte[] sign() throws Exception
-
update
public void update(byte[] foo) throws Exception
-
verify
public boolean verify(byte[] sig) throws Exception
-
normalize
protected byte[] normalize(byte[] secret)
-
-