TrustManagerCommands (AdminTask)
TrustManagerCommands commands can be used to create, delete, and query trust manager settings in the configuration. We can also use these commands to create a custom trust manager for a pure client.
createTrustManager
Create a trust manager in the configuration.
Target object: None
Parameters and return values
- -name
- The name that uniquely identifies the trust manager. (String, required)
- -scopeName
- The name of the scope. (String, optional)
- -provider
- Provider. (String, optional)
- -algorithm
- Algorithm name of the trust manager or key manager. (String, optional)
- -trustManagerClass
- Custom class that implements the javax.net.s sl.TrustManager interface. (String, optional)
Examples
Batch mode example:
Jacl:
$AdminTask createTrustManager {-name testTM}
Jython string...
AdminTask.createTrustManager ('[-name testTM]')
Jython list:
AdminTask.createTrustManager (['-name', 'testTM'])
Interactive mode:
Jacl:
$AdminTask createTrustManager {-interactive}
Jython string...
AdminTask.deleteTrustManager ('[-interactive]')
Jython list:
AdminTask.createTrustManager (['-interactive'])
deleteTrustManager
Delete the trust manager settings from the configuration.
Target object None.
Required parameters
- -name
- Name that uniquely identifies the trust manager. (String, required)
Optional parameters
- -scopeName
- Name of the scope. (String, optional)
Examples
Batch mode example:
Jacl:
$AdminTask deleteTrustManager {-name testTM}
Jython string...
AdminTask.deleteTrustManager('[-name testTM]')
Jython list:
AdminTask.deleteTrustManager(['-name', 'testTM'])
Interactive mode:
Jacl:
$AdminTask deleteTrustManager {-interactive}
Jython:
AdminTask.deleteTrustManager('-interactive')
getTrustManager
Obtain the setting of a trust manager.
Target object None.
Required parameters
- -name
- Name that uniquely identifies the trust manager. (String, required)
Optional parameters
- -scopeName
- Unique name identifying management scope. (String, optional)
Examples
Batch mode example:
Jacl:
$AdminTask getTrustManager {-name testTM}
Jython string...
AdminTask.getTrustManager('[-name testTM]')
Jython list:
AdminTask.getTrustManager(['-name', 'testTM'])
Interactive mode:
Jacl:
$AdminTask getTrustManager {-interactive}
Jython:
AdminTask.getTrustManager('-interactive')
listTrustManagers
List the trust managers within a particular management scope.
Target object None.
Required parameters None.
Optional parameters
- -scopeName
- Unique name identifying management scope. (String, optional)
- -displayObjectName
- Set to true to list the trust manager objects within a scope. Set false to list the strings containing the trust manager name and management scope. (Boolean, optional)
- -all
- Specify the value of this parameter as true to list all trust managers. This parameter overrides the scopeName parameter. The default value is false. (Boolean, optional)
Examples
Batch mode example:
Jacl:
$AdminTask listTrustManagers {-displayObjectName true}
Jython string...
AdminTask.listTrustManagers('[-displayObjectName true]')
Jython list:
AdminTask.listTrustManagers(['-displayObjectName', 'true'])
Interactive mode:
Jacl:
$AdminTask listTrustManagers {-interactive}
Jython:
AdminTask.listTrustManagers('-interactive')
modifyTrustManager
Change existing trust manager settings.
Target object None.
Required parameters
- -name
- Name that uniquely identifies the trust manager. (String, required)
Optional parameters
- -scopeName
- Unique name identifying management scope. (String, optional)
- -provider
- Provider name of the trust manager. (String, optional)
- -algorithm
- Algorithm name of the trust manager. (String, optional)
- -trustManagerClass
- Specifies a class that implements the javax.net.sslX509TrustManager interface. We cannot use this parameter with the provider or algorithm parameters. (String, optional)
Examples
Batch mode example:
Jacl:
$AdminTask modifyTrustManager {-name testTM -trustManagerClass test.trust.manager}
Jython string...
AdminTask.modifyTrustManager('[-name testTM -trustManagerClass test.trust.manager]')
Jython list:
AdminTask.modifyTrustManager(['-name', 'testTM', '-trustManagerClass', 'test.trust.manager'])
Interactive mode:
Jacl:
$AdminTask modifyTrustManager {-interactive}
Jython:
AdminTask.modifyTrustManager('-interactive')
Related concepts
Key management for cryptographic uses Use the wsadmin scripting AdminTask object for scripted administration Automating SSL configurations Create a custom trust manager configuration for SSL