com.jcraft.jsch.jce

Class SignatureRSA

Implemented Interfaces:
SignatureRSA

public class SignatureRSA
extends java.lang.Object
implements SignatureRSA

Method Summary

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 Details

init

public void init()
            throws Exception
Specified by:
init in interface SignatureRSA

setPrvKey

public void setPrvKey(byte[] d,
                      byte[] n)
            throws Exception
Specified by:
setPrvKey in interface SignatureRSA

setPubKey

public void setPubKey(byte[] e,
                      byte[] n)
            throws Exception
Specified by:
setPubKey in interface SignatureRSA

sign

public byte[] sign()
            throws Exception
Specified by:
sign in interface SignatureRSA

update

public void update(byte[] foo)
            throws Exception
Specified by:
update in interface SignatureRSA

verify

public boolean verify(byte[] sig)
            throws Exception
Specified by:
verify in interface SignatureRSA