LTPACommandGroup
Use the Jython or Jacl scripting languages to import and export LTPA keys.
Use the importLTPAKeys command to import an LTPA key from a file and add it to the security runtime and configuration. The exportLTPAKeys command exports an LTPA key that is currently being used by the runtime to a file.
The LTPACommandGroup commands include:
importLTPAKeys
The importLTPAKeys command imports an LTPA key from a file and adds it to the security runtime and configuration. The command takes the key from the file specified and adds it to the ltpa.jceks keystore where LTPA keys are stored. The key then becomes the current LTPA key of the runtime.
Target object: None.
Required parameters:
- -ltpaKeyFile
- Path to the file containing the LTPA key that is to be imported into the configuration and runtime. The parameter takes the file path URL format or just the file path. (String, required)
- -password
- The password of the LTPA key. (String, required)
Optional parameters: None.
Batch mode example usage
- Use Jacl:
wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile c:\temp\ltpa.key -password keypassword } wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile file:\temp\ltpa.key -password keypassword }- Use Jython:
wsadmin> AdminTask.importLTPAKeys('[-ltpaKeyFile c:\temp\ltpa.key -password keypassword ]') wsadmin> AdminTask.importLTPAKeys('[-ltpaKeyFile file:\temp\ltpa.key -password keypassword ]')
exportLTPAKeys
The exportLTPAKeys command exports an LTPA key that is currently being used by the runtime to a file. If the file where the key is to be stored does not exist, it is created. If it does not exist, then the file is overwritten.
Target object: None.
Required parameters:
- -ltpaKeyFile
- Path to the file containing the LTPA key that is to be imported into the configuration and runtime. The parameter takes the file path URL format or just the file path. (String, required)
- -password
- The password of the LTPA key. (String, required)
Optional parameters: None.
Batch mode example usage
- Use Jacl:
wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile c:\temp\writeltpa.key -password keypassword } wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile file:\temp\writeltpa.key -password keypassword }- Use Jython:
wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile c:\temp\writeltpa.key -password keypassword ]') wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile file:\temp\writeltpa.key -password keypassword ]')
Commands for the AdminTask object