AMETAS.sdk
Class ContainerBuilder

java.lang.Object
  extended byAMETAS.sdk.ContainerBuilder

public class ContainerBuilder
extends java.lang.Object

Stand-alone program to create SPUs and SCCs. This class is part of the AMETAS Software Development Kit (SDK). The tool may be utilized in three different modes:

The first mode is entered when ContainerBuilder is started without arguments. The following commands may be used.

addsigCont -privk PrivateKeyFile [-pass Passphrase] [-comp c] [-crypt class]Add signature to a container
addspuSPU -plus {SPU}+ [-comp c]Merge SPUs into one
addtypeSPU [-ver Version] (-file TypeFile> | -str String) [-mode [NON_]SHARED[_SESSION]] [-text VerbalDescription] [-tout Timeout] [-cost Charge] [-comp c]Add type description to SPU
addverSPU -ver {version}+ [-comp c]Add version to SPU container
apropossubjectFind help to subject
chksigContainer -pubk {PublicKeyFile}+ [-crypt Class]Check container signatures
contdirPathSet the default path for retrieving SPUs or SCCs
crscc{Class}+ [-force] [-comp c] [-flat] [-dst dir] [-src {dir}+] [-add {file}+]Create a Signed Class Container
crspuMainPUClass {class} [-force] [-comp c] [-dst dir] [-src {dir}+] [-add {file}+]Create a Signed Place User Container
help[command]This screen
iddirPathSet the default path for ID files
lssccSCCList SCC contents
lsspuSPUList SPU contents
quit(or exit)Leave ContainerBuilder
rmsigCont (-pubk {file}+ | -id {UID}+) [-comp c] [-crypt class]Remove signatures from the container
rmtypesSPU [-ver {version}+] [-comp c]Remove types from this PU (versions)
spuprivSPU [-ver [-] {Version}+] -start {Privilege}+ -run {Privilege}+ [-comp c]Define privileges in SPU
verbose(on|off)Turn on/off detail messages
xscc{SCC}+ [-dst TargetDirectory] [-force]Extract classes from SCC

Meaning: () serves for grouping in the syntax. {A} means "0 or more A", {A}+ means "at least one A", [A] is "0 or one A", (A|B) stands for "A or B".

The single-line mode is entered when starting ContainerBuilder with arguments taken from a line which is used in the interactive mode. That is, the command line in the interactive mode may be put as a list of arguments behind the ContainerBuilder invocation. In that case, only this command is executed, and ContainerBuilder returns.

The script mode is entered by appending the "-scr FileName" arguments to ContainerBuilder. In this mode, the given file name will be loaded, and each line will be treated as if the commands were entered subsequently in the interactive mode. Unlike the single-line mode, the program is only started once and keeps the state.

If a private key file (usually a complete identity ending with "idy") is used somewhere, a passphrase must be delivered. This may be done by using the -pass option. If this option is missing, the passphrase will be queried from the terminal where ContainerBuilder is running. As long as the program is running, each passphrase will be queried only once. This also holds for the script mode.

Note that ContainerBuilder does not need a place installation. All references to containers and identities are resolved by using the file system. If necessary, file name extensions are added automatically.

Learn more about the application of the commands in the AMETAS User's Guide.

Since:
2.6.0 (formally part of SecAdmin)


Method Summary
static void main(java.lang.String[] asArg)
          Startroutine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] asArg)
Startroutine.

Parameters:
asArg - Kommandozeilenparameter.