|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.certificates.RenewWTLSCertificates
Renews a WTLS certificate in a registry using the renewCertificates() method in MQePrivateRegistryConfigure. The certificate for the mini-certifiate server itself is obtained at the same time.
The example program takes four command-line parameters:
RenewWTLSCertificates [entity] [ini file] [MCS addr] [MCS Pin]
where:
entity - is the name of the entity for which a renewed certificate is required. This would typically be either a queue manager (eg ExampleQM) or a queue (eg ExampleQM+secureQueue) ini file - is the name of the configuration file. This would typically be the same file that is used for the queue manager and it must contain a [Registry] section. MCS addr - is the name and port address of the mini-certificate server (eg myServer:8085) MCS Pin - is the one-time use PIN issued by the mini-certificate server administrator to authorize this renewal request.
Restrictions:
This example should only be used on a private registry, typically owned by a queue manager or a queue.
Field Summary | |
static short[] |
version
|
Constructor Summary | |
RenewWTLSCertificates()
Empty constructor. |
|
RenewWTLSCertificates(java.lang.String regName,
java.lang.String iniFile)
Constructor. |
Method Summary | |
void |
activate(java.lang.String regName,
MQeFields configParams)
Activate, ie initialialize everything. |
void |
close()
Close - free any resources. |
static void |
main(java.lang.String[] args)
Main program |
void |
renew(java.lang.String miniCertServer,
java.lang.String miniCertPIN)
Renew the certificates in the registry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
Constructor Detail |
public RenewWTLSCertificates()
public RenewWTLSCertificates(java.lang.String regName, java.lang.String iniFile) throws java.lang.Exception
regName
- The name of the registryiniFile
- The name of the ini file which identifies the registry.
This can be either a queue manager's or a queue's registry.
java.lang.exception
- Thrown on error.
java.lang.Exception
Method Detail |
public void activate(java.lang.String regName, MQeFields configParams) throws java.lang.Exception
regName
- The name of the registryconfigParams
- The configuration parameters for the registry.
This can be either a queue manager's or a queue's registry.
java.lang.exception
- Thrown on error.
java.lang.Exception
public void renew(java.lang.String miniCertServer, java.lang.String miniCertPIN) throws java.lang.Exception
miniCertServer
- The network address and port number of the Mini-Certificate
Server.miniCertPIN
- The one-time PIN required by the Mini-Certificate
Server.
MQeException
- Propagated from renewCertificates()
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 |