net.schmizz.sshj.signature
Class SignatureRSA
java.lang.Object
net.schmizz.sshj.signature.AbstractSignature
net.schmizz.sshj.signature.SignatureRSA
- All Implemented Interfaces:
- Signature
public class SignatureRSA
- extends AbstractSignature
RSA Signature
Method Summary |
byte[] |
sign()
Compute the signature. |
boolean |
verify(byte[] sig)
Verify against the given signature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignatureRSA
public SignatureRSA()
sign
public byte[] sign()
- Description copied from interface:
Signature
- Compute the signature.
- Returns:
- the computed signature
verify
public boolean verify(byte[] sig)
- Description copied from interface:
Signature
- Verify against the given signature.
- Parameters:
sig
- the signature to verify against
- Returns:
true
on successful verification, false
on failure
Copyright © 2009-2012. All Rights Reserved.