You can use the Jython or Jacl scripting languages to configure security with the wsadmin tool. The commands and parameters in the KeySetCommands group can be used to create, delete, and query for key set settings in your configuration.
The createKeySet command creates the key set settings in the configuration. Use this command to control key instances that have the same type.
Target object
None.Required parameters
Optional parameters
Example output
The command returns the configuration object name of the key set object that you created.Examples
Batch mode example usage:
$AdminTask createKeySet {-name testKeySet –aliasPrefix test –password pwd –maxKeyReferences 2 –deleteOldKeys true –keyStoreName testKeyStore –isKeyPair false}
AdminTask.createKeySet('[-name testKeySet –aliasPrefix test –password pwd –maxKeyReferences 2 –deleteOldKeys true –keyStoreName testKeyStore –isKeyPair false]')
AdminTask.createKeySet(['-name', 'testKeySet', '–aliasPrefix', 'test', '–password', 'pwd', '–maxKeyReferences', '2', '–deleteOldKeys', 'true', '–keyStoreName', 'testKeyStore', '–isKeyPair', 'false'])
Interactive mode example usage:
$AdminTask createKeySet {-interactive}
AdminTask.createKeySet ('[-interactive]')
AdminTask.createKeySet (['-interactive'])
The deleteKeySet command deletes the settings of a key set from the configuration.
Target object
None.Required parameters
Optional parameters
Example output
The command does not return output.Examples
Batch mode example usage:
$AdminTask deleteKeySet{ -name testKeySet}
AdminTask.deleteKeySet('[-name testKeySet]')
AdminTask.deleteKeySet(['-name', 'testKeySet'])
Interactive mode example usage:
$AdminTask deleteKeySet {-interactive}
AdminTask.deleteKeySet ('[-interactive]')
AdminTask.deleteKeySet (['-interactive'])
The generateKeyForKeySet command generates keys for the keys in the key set.
Target object
None.Required parameters
Optional parameters
Example output
The command does not return output.Examples
Batch mode example usage:
$AdminTask generateKeyForKeySet{ -keySetName testKeySet }
AdminTask.generateKeyForKeySet('[-keySetName testKeySet]')
AdminTask.generateKeyForKeySet(['-keySetName', 'testKeySet'])
Interactive mode example usage:
$AdminTask generateKeyForKeySet {-interactive}
AdminTask.generateKeyForKeySet ('[-interactive]')
AdminTask.generateKeyForKeySet (['-interactive'])
The getKeySet command displays the settings of a particular key set.
Target object
None.Required parameters
Optional parameters
Example output
The command returns the settings of the specified key set group.Examples
Batch mode example usage:
$AdminTask getKeySet {-name testKeySet}
AdminTask.getKeySet ('[-name testKeySet]')
AdminTask.getKeySet (['-name', 'testKeySet'])
Interactive mode example usage:
$AdminTask getKeySet {-interactive}
AdminTask.getKeySet ('[-interactive]')
AdminTask.getKeySet (['-interactive'])
The listKeySets command lists the key sets in a particular scope.
Target object
None.Required parameters
None.Optional parameters
Example output
The command returns the key sets for the scope that you specified.Examples
Batch mode example usage:
$AdminTask listKeySets {-displayObjectName true}
AdminTask.listKeySets ('[-displayObjectName true]')
AdminTask.listKeySets (['-displayObjectName', 'true'])
Interactive mode example usage:
$AdminTask listKeySets {-interactive}
AdminTask.listKeySets ('[-interactive]')
AdminTask.listKeySets (['-interactive'])
The modifyKeySet command changes the settings of an existing key set.
Target object
None.Required parameters
Optional parameters
Example output
The command does not return output.Examples
Batch mode example usage:
$AdminTask modifyKeySet {-name testKeySet -maxKeyReferences 3 –deleteOldKeys false}
AdminTask.modifyKeySet ('[-name testKeySet -maxKeyReferences 3 –deleteOldKeys false]')
AdminTask.modifyKeySet (['-name', 'testKeySet', '-maxKeyReferences', '3', '–deleteOldKeys', 'false'])
Interactive mode example usage:
$AdminTask modifyKeySet {-interactive}
AdminTask.modifyKeySet ('[-interactive]')
AdminTask.modifyKeySet (['-interactive'])