|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.novell.ecb.secretstore.SecretStoreBean
|
+--com.novell.ecb.secretstore.GetServiceInfo
Retrieves SecretStore and service related information like version, crypto strength, number of Secrets, number of locked secrets etc.
ssInstance - A SecretStoreInstance object that represents the SecretStore whose information is to be retrieved.
flags - The flags for the operation. Currently, no flag is defined for this operation. Property is provided here for future use.
clientCryptostrength - The client’s crypto strength.
clientVersion – The version of the SecretStore client being used.
serverCryptoStrength - The server’s crypto strength.
serverVersion – The version of the SecretStore server being used.
numLockedSecrets - The number of locked Secrets.
numSecrets - The total number of Secrets.
lastAdminUnlockDN - The distinguished name (DN) of the last SecretStore administrator
who unlocked the SecretStore.
lastAdminUnlockTime - The time when SecretStore was unlocked by admin last time.
| Field Summary | |
static byte |
DOMESTIC_ENGINE
Constant that specifies the crypto strength as domestic. |
static byte |
EXPORT_ENGINE
Constant that specifies the crypto strength as export. |
static byte |
UNDETERMINED_ENGINE
Constant that specifies the crypto strength as undetermined. |
| Fields inherited from class com.novell.ecb.secretstore.SecretStoreBean |
MAX_BUFFER_SIZE |
| Constructor Summary | |
GetServiceInfo()
Constructs a GetServiceInfo command bean. |
|
GetServiceInfo(SecretStoreInstance ssInstance)
Constructs a GetServiceInfo command bean and sets the SecretStoreInstance to be used by the bean. |
|
| Method Summary | |
void |
execute()
Executes this command bean for getting the general information about the server and the client. |
byte |
getClientCryptoStrength()
Returns the crypto strength of the SecretStore client being used. |
int |
getClientVersion()
Returns the version of the SecretStore client being used. |
SSFlags |
getFlags()
Returns the flags set. |
java.lang.String |
getLastAdminUnlockDN()
Returns the DN of the SecretStore administrator who unlocked the SecretStore, last time. |
java.util.Date |
getLastAdminUnlockTime()
Returns the timestamp when SecretStore was unlocked last by SecretStore administrator. |
int |
getNumLockedSecrets()
Returns the number of Secrets which are in locked state in the SecretStore. |
int |
getNumSecrets()
Returns the total number of Secrets present in the SecretStore. |
byte |
getServerCryptoStrength()
Returns the crypto strength of the SecretStore server being used. |
int |
getServerVersion()
Returns the version of the SecretStore server being used. |
SSFlags |
getStatus()
Returns the current status of the SecretStore. |
boolean |
isReady()
Tests whether the required input properties are set and the bean is in "initialized" state. |
void |
reset()
Resets the output properties to the values they had before the execute method was called. |
void |
setFlags(SSFlags flags)
Sets the flags to be used while getting the service information. |
| Methods inherited from class com.novell.ecb.secretstore.SecretStoreBean |
getSecretStoreInstance, setSecretStoreInstance |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte DOMESTIC_ENGINE
public static final byte EXPORT_ENGINE
public static final byte UNDETERMINED_ENGINE
| Constructor Detail |
public GetServiceInfo()
public GetServiceInfo(SecretStoreInstance ssInstance)
ssInstance - A SecretStoreInstance object that represents the SecretStore whose information is to be retrieved.| Method Detail |
public void setFlags(SSFlags flags)
flags - Flags for the operation. Currently, no flag is defined for this operation. Property is provided here for future use.public SSFlags getFlags()
public boolean isReady()
If the user does not set a value for optional input property, default value is used. Therefore, these properties do not affect the readiness of the bean. However, bean will not be in ready state if any of the required input properties is not set.
public void reset()
Sets all the output properties to their default values. All objects are set
to null and all primitive data types are set to -1.
Default values are as follows:
serverCryptoStrength, clientCryptoStrength, serverVersion, clientVersion, numSecrets,
and numLockedSecrets are set to -1.
status, lastUnlockTime, and lastUnlockingDN are set to null.
public void execute()
throws CommandException
CommandException - Thrown if the bean fails to execute.
Example: Shows how to use GetServiceInfo bean.
// Get the SecretStoreInstance created by the CreateSecretStoreInstance bean.
SecretStoreInstance ssi = createSSI.getSecretStoreInstance();
try
{
// Instantiate the command bean
GetServiceInfo infoBean = new GetServiceInfo(ssi);
// Set the input properties of the command bean
// For this bean, the only required input is
// SecretStoreInstance object.
// Call the execute method of the command bean
infoBean.execute();
// Query the output properties of the command bean
int serverVersion = infoBean.getServerVersion();
byte serverCrypto = infoBean.getServerCryptoStrength();
int numSecrets = infoBean.getNumSecrets();
...
...
}
catch(CommandException e)
{
// TODO: Handle exception
}
CreateSecretStoreInstancepublic byte getClientCryptoStrength()
public int getClientVersion()
public byte getServerCryptoStrength()
public int getServerVersion()
public SSFlags getStatus()
public java.lang.String getLastAdminUnlockDN()
public java.util.Date getLastAdminUnlockTime()
public int getNumSecrets()
public int getNumLockedSecrets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||