public class DigestSignTask
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
DigestSignTask.DigestSigner
The actual long running task.
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
certificate |
private java.lang.String |
cryptoki |
private int |
current |
private java.io.InputStream |
dataStream |
private byte[] |
digest |
private byte[] |
encryptedDigest |
static int |
ERROR |
private long |
errorCode |
private int |
lengthOfTask |
private java.io.PrintStream |
log |
(package private) long |
mechanism |
private char[] |
password |
static int |
RESET |
static int |
SIGN_CERTIFICATE_INITDATA |
static int |
SIGN_DONE |
static int |
SIGN_ENCRYPT_DIGEST |
static int |
SIGN_INIT_SESSION |
static int |
SIGN_MAXIMUM |
private java.lang.String |
signerLabel |
private java.lang.String |
statMessage |
static int |
VERIFY_DONE |
static int |
VERIFY_INIT |
static int |
VERIFY_MAXIMUM |
Constructor and Description |
---|
DigestSignTask(java.lang.String aCriptoki,
java.lang.String aSignerLabel,
java.io.PrintStream aLog) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
done()
Called from ProgressBarDemo to find out if the task has completed.
|
byte[] |
getCertificate()
Inserire qui la descrizione del metodo.
|
(package private) int |
getCurrent()
Called from ProgressBarDemo to find out how much has been done.
|
java.io.InputStream |
getDataStream() |
byte[] |
getDigest()
This method was created in VisualAge.
|
byte[] |
getEncryptedDigest()
Inserire qui la descrizione del metodo.
|
long |
getErrorCode() |
(package private) int |
getLengthOfTask()
Called from ProgressBarDemo to find out how much work needs to be done.
|
long |
getMechanism() |
(package private) java.lang.String |
getMessage() |
(package private) void |
go()
Called from Signer Application to start the task.
|
void |
setCertificate(byte[] newCertificate)
Inserire qui la descrizione del metodo.
|
void |
setDataStream(java.io.InputStream dataStream) |
void |
setDigest(byte[] newDigest)
Inserire qui la descrizione del metodo.
|
private void |
setEncryptedDigest(byte[] newEncryptedDigest)
Inserire qui la descrizione del metodo.
|
void |
setMechanism(long mechanism) |
void |
setPassword(char[] pwd)
Inserire qui la descrizione del metodo.
|
private void |
setStatus(int status,
java.lang.String message,
long ec)
Inserire qui la descrizione del metodo.
|
(package private) void |
stop() |
private int lengthOfTask
private int current
private java.lang.String statMessage
private long errorCode
private java.io.PrintStream log
private char[] password
private byte[] digest
private java.io.InputStream dataStream
private byte[] encryptedDigest
private byte[] certificate
private java.lang.String cryptoki
private java.lang.String signerLabel
long mechanism
public static final int SIGN_MAXIMUM
public static final int SIGN_INIT_SESSION
public static final int SIGN_CERTIFICATE_INITDATA
public static final int SIGN_ENCRYPT_DIGEST
public static final int SIGN_DONE
public static final int VERIFY_MAXIMUM
public static final int VERIFY_INIT
public static final int VERIFY_DONE
public static final int RESET
public static final int ERROR
DigestSignTask(java.lang.String aCriptoki, java.lang.String aSignerLabel, java.io.PrintStream aLog)
boolean done()
public byte[] getCertificate()
int getCurrent()
public byte[] getDigest()
e
- java.awt.event.ActionEventpublic byte[] getEncryptedDigest()
newSignedData
- iaik.pkcs.pkcs7.SignedDataint getLengthOfTask()
java.lang.String getMessage()
public long getErrorCode()
void go()
public void setCertificate(byte[] newCertificate)
newCertificate
- intpublic void setDigest(byte[] newDigest)
newData
- byte[]private void setEncryptedDigest(byte[] newEncryptedDigest)
newSignedData
- iaik.pkcs.pkcs7.SignedDatapublic void setPassword(char[] pwd)
pwd
- char[]private void setStatus(int status, java.lang.String message, long ec)
message
- java.lang.Stringvoid stop()
public java.io.InputStream getDataStream()
public void setDataStream(java.io.InputStream dataStream)
public long getMechanism()
public void setMechanism(long mechanism)
mechanism
- The mechanism to set.