|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.acm.SigningUtility issrg.acm.DefaultSigningUtility
public final class DefaultSigningUtility
This is the default signing utility class. It does no signing, but just lets the Manager work and create ACs with Issuer DN in it.
It returns a StubX509Certificate when getVerificationCertificate is invoked. Then it can be used to retrieve the Issuer DN and other default values (Serial Number, Algorithm ID, etc). Note that other methods of the StubX509Certificate throw run-time exceptions, so the object is useless as an X509Certificate otherwise than just getting information to be embedded in the ACs.
As the Principal, it can return the name of the Signer, as input at login time.
Field Summary | |
---|---|
static java.lang.String |
NO_SIGNATURE_ALGORITHM_ID
This is the algorithm Identifier corresponding to "no signing". |
protected java.lang.String |
signerName
|
Constructor Summary | |
---|---|
DefaultSigningUtility()
|
|
DefaultSigningUtility(Registry where)
|
Method Summary | |
---|---|
java.lang.String |
getName()
This is the stub method for the Principal for retrieving the name of the Principal. |
java.lang.String |
getSigningAlgorithmID()
This method returns NO_SIGNATURE_ALGORITHM_ID as the signature algorithm identifier. |
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 returns an empty array as a signature of any AC. |
Methods inherited from class issrg.acm.SigningUtility |
---|
registerMe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Field Detail |
---|
protected java.lang.String signerName
public static final java.lang.String NO_SIGNATURE_ALGORITHM_ID
Note that this algorithm Identifier has been invented for the purpose of creating test ACs.
Constructor Detail |
---|
public DefaultSigningUtility()
public DefaultSigningUtility(Registry where)
Method Detail |
---|
public byte[] sign(byte[] aci)
sign
in interface Signer
aci
- is the binary data to be signed
public void login(java.awt.Frame frame, java.util.Map Environment) throws SecurityException
login
in class SigningUtility
SecurityException
public void logout(java.awt.Frame frame, java.util.Map Environment)
logout
in class SigningUtility
public java.lang.String getSigningAlgorithmID()
Note that this algorithm Identifier has been invented for the purposes of creating test ACs.
getSigningAlgorithmID
in interface Signer
public boolean isLoggedIn()
public java.security.cert.X509Certificate getVerificationCertificate()
Signer
getVerificationCertificate
in interface Signer
public java.lang.String getName()
getName
in interface java.security.Principal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |