org.apache.sshd.common.signature
Class SignatureRSA

java.lang.Object
  extended by org.apache.sshd.common.signature.AbstractSignature
      extended by org.apache.sshd.common.signature.SignatureRSA
All Implemented Interfaces:
Signature

public class SignatureRSA
extends AbstractSignature

RSA Signature

Author:
Apache MINA SSHD Project

Nested Class Summary
static class SignatureRSA.Factory
          A named factory for RSA Signature
 
Field Summary
 
Fields inherited from class org.apache.sshd.common.signature.AbstractSignature
algorithm, signature
 
Constructor Summary
SignatureRSA()
           
 
Method Summary
 byte[] sign()
          Compute the signature
 boolean verify(byte[] sig)
          Verify against the given signature
 
Methods inherited from class org.apache.sshd.common.signature.AbstractSignature
extractSig, init, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureRSA

public SignatureRSA()
Method Detail

sign

public byte[] sign()
            throws Exception
Description copied from interface: Signature
Compute the signature

Returns:
Throws:
Exception

verify

public boolean verify(byte[] sig)
               throws Exception
Description copied from interface: Signature
Verify against the given signature

Returns:
Throws:
Exception


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.