com.netscape.cmstools
Class CMCRevoke

java.lang.Object
  extended by com.netscape.cmstools.CMCRevoke

public class CMCRevoke
extends java.lang.Object

Tool for signing a CMC revocation request with an agent's certificate.

Version:
$Revision$, $Date$

Field Summary
static int ARGC
           
static java.lang.String CMS_BASE_CA_SIGNINGCERT_NOT_FOUND
           
static java.lang.String HEADER
           
static java.lang.String PR_INTERNAL_TOKEN_NAME
           
static java.lang.String PR_REQUEST_CMC
           
static java.lang.String TRAILER
           
 
Constructor Summary
CMCRevoke()
           
 
Method Summary
static org.mozilla.jss.crypto.X509Certificate getCertificate(org.mozilla.jss.CryptoManager manager, java.lang.String tokenname, java.lang.String nickname)
          getCertificate find the certicate inside the token by its nickname.
static void main(java.lang.String[] s)
          Creates a new instance of CMCRevoke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARGC

public static final int ARGC
See Also:
Constant Field Values

HEADER

public static final java.lang.String HEADER
See Also:
Constant Field Values

TRAILER

public static final java.lang.String TRAILER
See Also:
Constant Field Values

CMS_BASE_CA_SIGNINGCERT_NOT_FOUND

public static final java.lang.String CMS_BASE_CA_SIGNINGCERT_NOT_FOUND
See Also:
Constant Field Values

PR_INTERNAL_TOKEN_NAME

public static final java.lang.String PR_INTERNAL_TOKEN_NAME
See Also:
Constant Field Values

PR_REQUEST_CMC

public static final java.lang.String PR_REQUEST_CMC
See Also:
Constant Field Values
Constructor Detail

CMCRevoke

public CMCRevoke()
Method Detail

main

public static void main(java.lang.String[] s)
Creates a new instance of CMCRevoke.


getCertificate

public static org.mozilla.jss.crypto.X509Certificate getCertificate(org.mozilla.jss.CryptoManager manager,
                                                                    java.lang.String tokenname,
                                                                    java.lang.String nickname)
                                                             throws org.mozilla.jss.NoSuchTokenException,
                                                                    java.lang.Exception,
                                                                    org.mozilla.jss.crypto.TokenException
getCertificate find the certicate inside the token by its nickname.

Parameters:
manager - the CrytoManager
tokenname - the name of the token. it's set to "internal".
nickname - the nickname of the certificate inside the token.
Returns:
the X509Certificate.
Throws:
org.mozilla.jss.NoSuchTokenException
java.lang.Exception
org.mozilla.jss.crypto.TokenException