|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.certificates.ListWTLSCertificates
List certificates in a registry, at different levels of detail. This uses the com.ibm.mqe.attributes.MQeListCertificate class to read the certificates from the registry and get the required information from the certificates.
The example program takes these command-line parameters:
ListWTLSCertificates [reg Name] [ini file] [level] [cert names]
where:
reg Name - is the name of the registry whose certificates are to be listed. This can be a queue manager's registry, a queue's registry, a public registry, or (for the administrator) the mini-certificate server's registry. ini file - is the name of the configuration file. This would typically be the same file that is used for the queue manager or mini-certificate server. This can be omitted for public registries. level - is the level of detail for the listing. This can be: -b or -brief this is the default. It prints the names of the certificates, one per line. -f or -full prints the names of the certificates, their type, and some of their contents cert names - the flag "-cn" followed by names of specific certificates, eg: -cn ExampleQM putQM If certificate names are specified, only these certificates will be listed. If no names are specified, all the certificates in the registry will be listed.
Field Summary | |
static java.lang.String |
issuer
|
static java.lang.String |
MiniCertificateServer
|
static java.lang.String |
MiniCertSvrRegistry
|
static java.lang.String |
notAfter
|
static java.lang.String |
notBefore
|
static java.lang.String |
Registry
|
static java.lang.String |
subject
|
static short[] |
version
|
Constructor Summary | |
ListWTLSCertificates()
Empty constructor. |
Method Summary | |
void |
close()
Close - free any resources. |
void |
list()
List the certificates in the registry. |
static void |
main(java.lang.String[] args)
Main program |
void |
openList()
OpenList, ie initialialize everything. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public static final java.lang.String MiniCertSvrRegistry
public static final java.lang.String Registry
public static final java.lang.String MiniCertificateServer
public static final java.lang.String subject
public static final java.lang.String issuer
public static final java.lang.String notBefore
public static final java.lang.String notAfter
Constructor Detail |
public ListWTLSCertificates()
Method Detail |
public void openList() throws java.lang.Exception
java.lang.exception
- Thrown on error.
java.lang.Exception
public void list() throws java.lang.Exception
MQeException
java.lang.Exception
public void close()
public static void main(java.lang.String[] args)
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |