LTPACommandGroup command group for the AdminTask object

You can 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 command group for the AdminTask object includes the following commands:

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
Specifies the path to the file that contains 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

  • Using Jacl:
    wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile c:\temp\ltpa.key -password keypassword }
    
    wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile file:\temp\ltpa.key -password keypassword }
  • Using 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
Specifies the path to the file that contains 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

  • Using Jacl:
    wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile c:\temp\writeltpa.key -password keypassword }
    
    wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile file:\temp\writeltpa.key -password keypassword }
  • Using Jython:
    wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile c:\temp\writeltpa.key -password keypassword ]')
    
    wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile file:\temp\writeltpa.key -password keypassword ]')