TrustManagerCommands command group for the AdminTask object
You can use the Jython or Jacl scripting languages to configure security with the wsadmin tool. The commands and parameters in the TrustManagerCommands group can be used to create, delete, and query trust manager settings in your configuration. You can also use these commands to create a custom trust manager for a pure client. The TrustManagerCommands command group for the AdminTask object includes the following commands:
deleteTrustManager
The deleteTrustManager command deletes the trust manager settings from the configuration.
Target object
None
Parameters and return values
- -name
- The name that uniquely identifies the trust manager. (String, optional)
- -scopeName
- The name of the scope. (String, optional)
Examples
Batch mode example usage:
- Use Jacl:
$AdminTask deleteTrustManager {-name testTM}
- Use Jython string:
AdminTask.deleteTrustManager ('[-name testTM]')
- Use Jython list:
AdminTask.deleteTrustManager (['-name', 'testTM'])
Interactive mode example usage:
- Use Jacl:
$AdminTask deleteTrustManager {-interactive}
- Use Jython string:
AdminTask.deleteTrustManager ('[-interactive]')
- Use Jython list:
AdminTask.deleteTrustManager (['-interactive'])
getTrustManager
The getTrustManager command obtains the setting of a trust manager.
Target object
None
Parameters and return values
- -name
- The name that uniquely identifies the trust manager. (String, optional)
- -scopeName
- The name of the scope. (String, optional)
Examples
Batch mode example usage:
- Use Jacl:
$AdminTask getTrustManager {-name testTM}
- Use Jython string:
AdminTask.getTrustManager ('[-name testTM]')
- Use Jython list:
AdminTask.getTrustManager (['-name', 'testTM'])
Interactive mode example usage:
- Use Jacl:
$AdminTask getTrustManager {-interactive}
- Use Jython string:
AdminTask.getTrustManager ('[-interactive]')
- Use Jython list:
AdminTask.getTrustManager (['-interactive'])
listTrustManagers
The listTrustManagers command lists the trust managers within a particular management scope.
Target object
None
Parameters and return values
- -scopeName
- The name of the scope. (String, optional)
- -displayObjectName
- Set the value of this parameter to true to list the trust manager objects within a scope. Set the value of this parameter to false to list the strings that contain the trust manager name and management scope. (Boolean, optional)
Examples
Batch mode example usage:
- Use Jacl:
$AdminTask listTrustManagers {-displayObjectName true}
- Use Jython string:
AdminTask.listTrustManagers ('[-displayObjectName true]')
- Use Jython list:
AdminTask.listTrustManagers (['-displayObjectName', 'true'])
Interactive mode example usage:
- Use Jacl:
$AdminTask listTrustManagers {-interactive}
- Use Jython string:
AdminTask.listTrustManagers ('[-interactive]')
- Use Jython list:
AdminTask.listTrustManagers (['-interactive'])
modifyTrustManager
The modifyTrustManager command changes existing trust manager settings.
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
- The provider name of the trust manager. (String, optional)
- -algorithm
- The algorithm name of the trust manager. (String, optional)
- -trustManagerClass
- Specifies a class that implements the javax.net.sslX509TrustManager interface. You cannot use this parameter with the provider or algorithm parameters. (String, optional)
Examples
Batch mode example usage:
- Use Jacl:
$AdminTask modifyTrustManager {-name testTM -trustManagerClass test.trust.manager}
- Use Jython string:
AdminTask.modifyTrustManager ('[-name testTM -trustManagerClass test.trust.manager]')
- Use Jython list:
AdminTask.modifyTrustManager (['-name', 'testTM', '-trustManagerClass', 'test.trust.manager'])
Interactive mode example usage:
- Use Jacl:
$AdminTask modifyTrustManager {-interactive}
- Use Jython string:
AdminTask.modifyTrustManager ('[-interactive]')
- Use Jython list:
AdminTask.modifyTrustManager (['-interactive'])
Related tasks
Use the AdminTask object for scripted administration
Related Reference
Commands for the AdminTask object
Reference topic