com.rsa.swsj
Class StatusInfo

java.lang.Object
  extended bycom.rsa.swsj.StatusInfo

public final class StatusInfo
extends java.lang.Object

This class defines the detailed information of an XML security operation. It includes the status of the core signature validation, the reference validations, and detailed error information during verification of the signature. Also, it contains the status of encryption operation, including detailed error information and the detailed information about operations on tokens (addition, removal), its status and error messages.


Field Summary

static int

CORE_VALIDATION_FAILED

Specifies that both signature and reference validations failed.

static int

DECRYPTION_FAILED

Specifies that decryption failed.

static int

ENCRYPTION_FAILED

Specifies that encryption failed.

static int

OPERATION_SUCCESS

Specifies that the operation succeeded.

static int

REFERENCE_VALIDATION_FAILED

Specifies that the reference validation failed, but the signature over the signedInfo element validation succeeded.

static int

SIGNATURE_COMPUTATION_FAILED

Specifies that signature computation failed.

static int

SIGNATURE_VERIFICATION_FAILED

Specifies that signature validation failed, but reference validations succeeded.

static int

TIMESTAMP_VALIDATION_FAILED

Specifies that the timestamp of the xml signature is expired.

 
Method Summary

 java.lang.String

getDescription()

Returns the detailed description of error during core operations, such as signing, encryption, or adding a token.

 int

getStatus()

Returns the status of the operation, such as encryption, token removal, or document signing.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_SUCCESS

public static final int OPERATION_SUCCESS
Specifies that the operation succeeded.

See Also:
Constant Field Values

SIGNATURE_VERIFICATION_FAILED

public static final int SIGNATURE_VERIFICATION_FAILED
Specifies that signature validation failed, but reference validations succeeded.

See Also:
Constant Field Values

REFERENCE_VALIDATION_FAILED

public static final int REFERENCE_VALIDATION_FAILED
Specifies that the reference validation failed, but the signature over the signedInfo element validation succeeded. In general, when a single reference fails, the signature will fail. But some applications can define reference validation decision logic. For example, an application can treat the signature over the valid reference elements as valid or take different actions, depending on which fails.

See Also:
Constant Field Values

CORE_VALIDATION_FAILED

public static final int CORE_VALIDATION_FAILED
Specifies that both signature and reference validations failed.

See Also:
Constant Field Values

SIGNATURE_COMPUTATION_FAILED

public static final int SIGNATURE_COMPUTATION_FAILED
Specifies that signature computation failed.

See Also:
Constant Field Values

TIMESTAMP_VALIDATION_FAILED

public static final int TIMESTAMP_VALIDATION_FAILED
Specifies that the timestamp of the xml signature is expired.

See Also:
Constant Field Values

ENCRYPTION_FAILED

public static final int ENCRYPTION_FAILED
Specifies that encryption failed.

See Also:
Constant Field Values

DECRYPTION_FAILED

public static final int DECRYPTION_FAILED
Specifies that decryption failed.

See Also:
Constant Field Values
Method Detail

getStatus

public int getStatus()
Returns the status of the operation, such as encryption, token removal, or document signing.

Returns:
The integer value of the operation status that is one of the flags defined in this class.

getDescription

public java.lang.String getDescription()
Returns the detailed description of error during core operations, such as signing, encryption, or adding a token.

Returns:
A detailed descriptions of the error.