Package com.jcraft.jsch.jce
Class SignatureRSA
- java.lang.Object
-
- com.jcraft.jsch.jce.SignatureRSA
-
- All Implemented Interfaces:
Signature
,SignatureRSA
public class SignatureRSA extends Object implements SignatureRSA
-
-
Constructor Summary
Constructors Constructor Description SignatureRSA()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
void
setPrvKey(byte[] d, byte[] n)
void
setPubKey(byte[] e, byte[] n)
byte[]
sign()
void
update(byte[] foo)
boolean
verify(byte[] sig)
-
-
-
Method Detail
-
init
public void init() throws Exception
-
setPubKey
public void setPubKey(byte[] e, byte[] n) throws Exception
- Specified by:
setPubKey
in interfaceSignatureRSA
- Throws:
Exception
-
setPrvKey
public void setPrvKey(byte[] d, byte[] n) throws Exception
- Specified by:
setPrvKey
in interfaceSignatureRSA
- Throws:
Exception
-
sign
public byte[] sign() throws Exception
-
update
public void update(byte[] foo) throws Exception
-
-