AMETAS.place
Class SecAdmin

java.lang.Object
  extended byAMETAS.place.SecAdmin

public class SecAdmin
extends java.lang.Object

Stand-alone tool to configure the place security. SecAdmin allows to configure the security offline, that is, the place need not run, and is even recommended not to run. Most commands require the knowledge of the place's passphrase. After it has been entered correctly, the passphrase will not be queried again.

All commands are also available as command line arguments for the start of SecAdmin. In that case, the command will be executed, and SecAdmin terminates. In order to avoid writing the place passphrase in plain text into scripts, the pseudo passphrase ".QUERY." may be used. In that case, SecAdmin will request the user to type in the passphrase.

The following commands are defined in SecAdmin.

apropossubjectFind help to subject
cfyidyCAPass CAFile File msecCertify identity
chksigPlacePasshrase SPUCheck SPU signatures
crplidyPlacePassphrase (PLACE|CA)Create the place identity
crprivPlacePassphrase Name[{Permission}]Define a privilege
cruserName UserPass FileCreate a new user
csccsigPlacePassphrase SCCCheck SCC signatures
grprivPlacePassphrase (IDFile|#UID) {Priv}Grant privileges
help[command]This screen
impidyPlacePassphrase FileImport identity
initdapPlacePassphraseReset DomainAccessPolicy
pubidyFullIdyFile PubIdyFileCreate a public identity
quitor exitLeave SecAdmin
rmallcertIdentFileRemove all certificates
rmprivPlacePassphrase PrivNameRemove a privilege
rmidyPlacePassphrase (IDfile|#UID)Remove identity from database
rvallprivPlacePassphrase (IDfile|#UID)Revoke all privileges of this ID
rvprivPlacePassphrase (IDfile|#UID) PrivRevoke a privilege of this ID
setaupPlacePassphrase MigAg? LocalAg? Service? User? AllowGuest?Set the authentication policy
setcapPlacePassphrase {CAname}Accepted CAs
setdepPlacePassphrase KnownAuthor?Are unknown authors accepted?
setmipPlacePassphrase MinIntLevel MaxIntLevel MinExtLevel MaxExtLevelSet the migration policy
setpdpPlacePassphrase DomAdminPl {Place}Set the PlaceDomainPolicy
show(aup|cap|dap|dep|mip|pdp) PlacePassphraseShow the respective policy
show(idy|pidy) PlacePassphraseShow identities
verbose(on|off)Turn on/off detail messages

Caution: The place passphrase must be used with extreme care. Knowledge of this passphrase will give complete control of the place. Although using the place passphrase in scripts may seem to be handy, we definitely discourage you from doing that.


Constructor Summary
SecAdmin(java.lang.String sFile, boolean bDebug, java.io.OutputStream osOut, java.io.OutputStream osErr)
          Constructor which does not process command line arguments.
 
Method Summary
 java.lang.String getPlace()
          Returns the name of the currently defined place.
 void loadConfig(java.lang.String sFile)
          Changes the places to be configured.
static void main(java.lang.String[] arg)
          Start method.
 void processCommand(java.lang.String sCommand)
          Executed the given command as if it were provided at the command prompt of the interactive mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecAdmin

public SecAdmin(java.lang.String sFile,
                boolean bDebug,
                java.io.OutputStream osOut,
                java.io.OutputStream osErr)
Constructor which does not process command line arguments.

Parameters:
sFile - Config file.
bDebug - if true, detail messages are printed.
osOut - Output stream.
osErr - Error stream.
Method Detail

main

public static void main(java.lang.String[] arg)
Start method. You must at least provide the name of the place configuration file.

AMETAS.place.SecAdmin [-v] ConfigFile [Command {Arguments}]

with "-v" turning on the detail messages.

Parameters:
arg - Command line parameters.

processCommand

public void processCommand(java.lang.String sCommand)
Executed the given command as if it were provided at the command prompt of the interactive mode. The place it operates on must have been set before.

Parameters:
sCommand - command string which complies to the same syntax as if entered at the commmand prompt.

getPlace

public java.lang.String getPlace()
Returns the name of the currently defined place. This place is affected on subsequent calls to processCommand.

Returns:
Name of the currently referenced place

loadConfig

public void loadConfig(java.lang.String sFile)
Changes the places to be configured. This method allows to reuse the same SecAdmin instance for another place. All subsequent processCommand calls refer to this place.

Parameters:
sFile - Configuration file of the new place.