|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.pa.SigningUtility
issrg.pa.extensions.EntrustSigningUtility
public class EntrustSigningUtility
This class provides signing by employing Entrust Java toolkit.
The user is asked to pick the Entrust profile file, and then authenticate himself by entering the password. Signer's identity is picked from the PKC.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_PROFILE
This is the filename of the EPF file that will be used by default in case the DEFAULT_PROFILE_STING variable is missing from the
Environment. |
static java.lang.String |
DEFAULT_PROFILE_STRING
This variable names the configuration variable in the pa.cfg file that points to the default profile file. |
Constructor Summary | |
---|---|
EntrustSigningUtility()
This was used before; left for compliancy. |
Method Summary | |
---|---|
java.lang.String |
getSigningAlgorithmID()
The user must be logged in at this point. |
java.security.cert.X509Certificate |
getVerificationCertificate()
This method lets the caller get the verification certificate so it can be provided in some form to the signature verifier, or can be used to extract the necessary data to form the correct signature information (signer's name, etc). |
boolean |
isLoggedIn()
|
void |
login(java.awt.Frame frame,
java.util.Map Environment)
|
void |
logout(java.awt.Frame frame,
java.util.Map Environment)
|
byte[] |
sign(byte[] aci)
This method lets the caller sign any data and returns the signature of it. |
Methods inherited from class issrg.pa.SigningUtility |
---|
registerMe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_PROFILE_STRING
At the moment its value is "EntrustSigningUtility.DefaultProfile".
public static final java.lang.String DEFAULT_PROFILE
DEFAULT_PROFILE_STING
variable is missing from the
Environment.
Constructor Detail |
---|
public EntrustSigningUtility()
Method Detail |
---|
public byte[] sign(byte[] aci) throws EntrustSecurityException
Signer
aci
- is the binary data to be signed
EntrustSecurityException
public boolean isLoggedIn()
public void login(java.awt.Frame frame, java.util.Map Environment) throws EntrustSecurityException
EntrustSecurityException
public void logout(java.awt.Frame frame, java.util.Map Environment) throws EntrustSecurityException
EntrustSecurityException
public java.lang.String getSigningAlgorithmID() throws ACCreationException
getSigningAlgorithmID
in interface Signer
getSigningAlgorithmID
in class SigningUtility
ACCreationException
public java.security.cert.X509Certificate getVerificationCertificate() throws EntrustSecurityException
Signer
EntrustSecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |