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:

createTrustManager

The createTrustManager command creates 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
Specifies the provider. (String, optional)
-algorithm
Specifies the algorithm name of the trust manager or key manager. (String, optional)
-trustManagerClass
Specifies the custom class that implements the javax.net.s sl.TrustManager interface. (String, optional)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask createTrustManager {-name testTM}
  • Using Jython string:
    AdminTask.createTrustManager ('[-name testTM]')
  • Using Jython list:
    AdminTask.createTrustManager (['-name', 'testTM'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask createTrustManager {-interactive}
  • Using Jython string:
    AdminTask.deleteTrustManager ('[-interactive]')
  • Using Jython list:
    AdminTask.createTrustManager (['-interactive'])

deleteTrustManager

The deleteTrustManager command deletes the trust manager settings from the configuration.

Target object

None.

Required parameters

-name
Specifies the name that uniquely identifies the trust manager. (String, required)

Optional parameters

-scopeName
Specifies the name of the scope. (String, optional)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask deleteTrustManager {-name testTM}
  • Using Jython string:
    AdminTask.deleteTrustManager('[-name testTM]')
  • Using Jython list:
    AdminTask.deleteTrustManager(['-name', 'testTM'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask deleteTrustManager {-interactive}
  • Using Jython:
    AdminTask.deleteTrustManager('-interactive')

getTrustManager

The getTrustManager command obtains the setting of a trust manager.

Target object

None.

Required parameters

-name
Specifies the name that uniquely identifies the trust manager. (String, required)

Optional parameters

-scopeName
Specifies the unique name that identifies the management scope. (String, optional)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask getTrustManager {-name testTM}
  • Using Jython string:
    AdminTask.getTrustManager('[-name testTM]')
  • Using Jython list:
    AdminTask.getTrustManager(['-name', 'testTM'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask getTrustManager {-interactive}
  • Using Jython:
    AdminTask.getTrustManager('-interactive')

listTrustManagers

The listTrustManagers command lists the trust managers within a particular management scope.

Target object

None.

Required parameters

None.

Optional parameters

-scopeName
Specifies the unique name that identifies the management 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)
-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 usage:

  • Using Jacl:
    $AdminTask listTrustManagers {-displayObjectName true}
  • Using Jython string:
    AdminTask.listTrustManagers('[-displayObjectName true]')
  • Using Jython list:
    AdminTask.listTrustManagers(['-displayObjectName', 'true'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask listTrustManagers {-interactive}
  • Using Jython:
    AdminTask.listTrustManagers('-interactive')

modifyTrustManager

The modifyTrustManager command changes existing trust manager settings.

Target object

None.

Required parameters

-name
Specifies the name that uniquely identifies the trust manager. (String, required)

Optional parameters

-scopeName
Specifies the unique name that identifies the management scope. (String, optional)
-provider
Specifies the provider name of the trust manager. (String, optional)
-algorithm
Specifies 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:

  • Using Jacl:
    $AdminTask modifyTrustManager {-name testTM -trustManagerClass test.trust.manager}
  • Using Jython string:
    AdminTask.modifyTrustManager('[-name testTM -trustManagerClass test.trust.manager]')
  • Using Jython list:
    AdminTask.modifyTrustManager(['-name', 'testTM', '-trustManagerClass', 'test.trust.manager'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask modifyTrustManager {-interactive}
  • Using Jython:
    AdminTask.modifyTrustManager('-interactive')