Package com.jcraft.jsch.jce
Class SignatureRSA
- java.lang.Object
-
- com.jcraft.jsch.jce.SignatureRSA
-
- All Implemented Interfaces:
Signature
,SignatureRSA
public class SignatureRSA extends java.lang.Object implements SignatureRSA
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.security.KeyFactory
keyFactory
(package private) java.security.Signature
signature
-
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 java.lang.Exception
-
setPubKey
public void setPubKey(byte[] e, byte[] n) throws java.lang.Exception
- Specified by:
setPubKey
in interfaceSignatureRSA
- Throws:
java.lang.Exception
-
setPrvKey
public void setPrvKey(byte[] d, byte[] n) throws java.lang.Exception
- Specified by:
setPrvKey
in interfaceSignatureRSA
- Throws:
java.lang.Exception
-
sign
public byte[] sign() throws java.lang.Exception
-
update
public void update(byte[] foo) throws java.lang.Exception
-
-