| java.lang.Object |
| ↳ |
net.schmizz.sshj.signature.AbstractSignature |
Known Direct Subclasses
|
Class Overview
An abstract class for Signature that implements common functionality.
Summary
| Public Methods |
|
void
|
init(PublicKey publicKey, PrivateKey privateKey)
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.
|
|
void
|
update(byte[] foo)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
net.schmizz.sshj.signature.Signature
|
abstract
void
|
init(PublicKey pubkey, PrivateKey prvkey)
Initialize this signature with the given public key and private key.
|
|
abstract
byte[]
|
sign()
Compute the signature.
|
|
abstract
void
|
update(byte[] H, int off, int len)
Update the computed signature with the given data.
|
|
abstract
void
|
update(byte[] H)
|
|
abstract
boolean
|
verify(byte[] sig)
Verify against the given signature.
|
|
Fields
protected
final
String
algorithm
protected
Signature
signature
Protected Constructors
protected
AbstractSignature
(String algorithm)
Public Methods
public
void
init
(PublicKey publicKey, PrivateKey privateKey)
Initialize this signature with the given public key and private key. If the private key is null, only signature
verification can be performed.
Parameters
| publicKey
| (null-ok) specify in case verification is needed |
| privateKey
| (null-ok) specify in case signing is needed
|
public
void
update
(byte[] foo, int off, int len)
Update the computed signature with the given data.
Parameters
| foo
| Byte-array to update with |
| off
| Offset within the array |
| len
| Length until which to compute
|
public
void
update
(byte[] foo)
Parameters
| foo
| The byte-array to update with
|
Protected Methods
protected
byte[]
extractSig
(byte[] sig)