org.apache.sshd.common.signature
Class AbstractSignature
java.lang.Object
org.apache.sshd.common.signature.AbstractSignature
- All Implemented Interfaces:
- Signature
- Direct Known Subclasses:
- SignatureDSA, SignatureRSA
public abstract class AbstractSignature
- extends java.lang.Object
- implements Signature
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
|
Field Summary |
protected java.lang.String |
algorithm
|
protected java.security.Signature |
signature
|
|
Method Summary |
protected byte[] |
extractSig(byte[] sig)
|
void |
init(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
Initialize this signature with the given public key and private key. |
void |
update(byte[] foo,
int off,
int len)
Update the computed signature with the given data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
signature
protected java.security.Signature signature
algorithm
protected java.lang.String algorithm
AbstractSignature
protected AbstractSignature(java.lang.String algorithm)
init
public void init(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
throws java.lang.Exception
- Description copied from interface:
Signature
- Initialize this signature with the given public key and private key.
If the private key is null, only signature verification can be performed.
- Specified by:
init in interface Signature
- Throws:
java.lang.Exception
update
public void update(byte[] foo,
int off,
int len)
throws java.lang.Exception
- Description copied from interface:
Signature
- Update the computed signature with the given data
- Specified by:
update in interface Signature
- Throws:
java.lang.Exception
extractSig
protected byte[] extractSig(byte[] sig)
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.