issrg.acm.extensions
Class ACMDISSigningUtility

java.lang.Object
  extended by issrg.acm.SigningUtility
      extended by issrg.acm.extensions.SimpleSigningUtility
          extended by issrg.acm.extensions.ACMDISSigningUtility
All Implemented Interfaces:
SSLConnection, Utility, Signer

public class ACMDISSigningUtility
extends SimpleSigningUtility
implements Utility, SSLConnection

Author:
anhnt

Constructor Summary
ACMDISSigningUtility()
          Creates a new instance of ACMDISSigningUtility
 
Method Summary
 java.lang.String revoke(java.lang.String endpoint, byte[] certificate, java.util.Map vars)
          This method calls the DIS service for revoking an AC
 java.lang.String sign(java.lang.String endpoint, byte[] certificate, java.util.Map vars)
          This method calls the DIS service for signing (storing) an AC
 
Methods inherited from class issrg.acm.extensions.SimpleSigningUtility
getSigningAlgorithmID, getVerificationCertificate, isLoggedIn, login, logout, sign
 
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 issrg.acm.Utility
registerMe
 

Constructor Detail

ACMDISSigningUtility

public ACMDISSigningUtility()
Creates a new instance of ACMDISSigningUtility

Method Detail

sign

public java.lang.String sign(java.lang.String endpoint,
                             byte[] certificate,
                             java.util.Map vars)
This method calls the DIS service for signing (storing) an AC

Specified by:
sign in interface SSLConnection
Parameters:
endpoint - is a string. It is the URL of the DIS service
certificate - is the AC that needs to be signed by the DIS
vars - is the map, that stores the environmental variables
Returns:
a string, that tells the result of the signing (storing) process

revoke

public java.lang.String revoke(java.lang.String endpoint,
                               byte[] certificate,
                               java.util.Map vars)
This method calls the DIS service for revoking an AC

Specified by:
revoke in interface SSLConnection
Parameters:
endpoint - is a string. It is the URL of the DIS service
certificate - is the AC that needs to be revoked by the DIS
vars - is the map, that stores the environmental variables
Returns:
a string, that tells the result of the revoking process