|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.apiutil.SmApiResult
public class SmApiResult
Holds the result of the Java API request. A result consists of a result message plus a facility, severity, and status code value, as follows:
FACILITY_ and are described
in the Field Detail section.
SEVERITY_ and are described
in the Field Detail section.
SERVER_EXPIRED_SESSION
contains the following information:
Facility : FACILITY_SERVEREach result object and its Facility/Severity/Status combination are represented by a unique value. These unique values are associated with predefined constants defined in the Field Detail section of the
Severity : SEVERITY_ERROR
Status : 9
Message : The session has expired
SmApiResult class -- for example,
SERVER_EXPIRED_SESSION.
To determine the Facility/Severity/Status information for a result,
you can call equals() to compare the
returned SmApiResult object with the result constants.
reason code. For example, a password policy
result might include a reason code of 1001, meaning that the
password doesn't contain the required number of characters.
SmApiResult objects are returned in the following circumstances:
SERVER_.
SmApiResult object is embedded in the exception object.
| Field Summary | |
|---|---|
static SmApiResult |
AGENT_FAILURE
Agent API failure. |
static SmApiResult |
AGENT_INITIALIZATION_FAILURE
Agent initialization failed. |
static SmApiResult |
BUFFER_CREATION_FAILURE
Buffer creation failure. |
static SmApiResult |
CLIENT_EXPORT_CONFIG_F
.config file for policy data export already exists. |
static SmApiResult |
CLIENT_EXPORT_FILE_WRITE_ERROR
Error writing data to file during policy data export. |
static SmApiResult |
CLIENT_EXPORT_FILENAME_F
Policy data export file name not supplied. |
static SmApiResult |
CLIENT_EXPORT_SMDIFFILE_F
.smdif file for policy data export already exists |
static SmApiResult |
CLIENT_IMPORT_FILE_READ_ERROR
Error reading data from file during policy data import. |
static SmApiResult |
CLIENT_IMPORT_NO_INPUTFILE_I
Input file name for policy data import not set. |
static SmApiResult |
CLIENT_IMPORT_OPEN_ERROR
Error opening input .smdif file for policy data import. |
static SmApiResult |
CLIENT_INVALID_AGENTTYPE
Invalid Agent Type. |
static SmApiResult |
CLIENT_INVALID_AGENTTYPE_ACTION
Invalid action supplied for RADIUS agent |
static SmApiResult |
CLIENT_INVALID_AGENTTYPE_RESOURCE
Invalid Resource type set for agent |
static SmApiResult |
CLIENT_INVALID_AGENTTYPE_SPECIFIC
Invalid Agent type Specific set for agent |
static SmApiResult |
CLIENT_INVALID_AGENTTYPEATTR_DATATYPE
Invalid AgentTypeAttr DataType |
static SmApiResult |
CLIENT_INVALID_AGENTTYPEATTR_DATATYPE_VALUE
Invalid Data type values |
static SmApiResult |
CLIENT_INVALID_AGENTTYPEATTR_ID
Invalid AgentTypeAttr Identifier |
static SmApiResult |
CLIENT_INVALID_AGENTTYPEATTR_NUMERICVALUE
Invalid Numeric Value |
static SmApiResult |
CLIENT_INVALID_AGENTTYPEATTR_RADIUSBEHAVIOR
Invalid AgentTypeAttr RADIUS Behavior |
static SmApiResult |
CLIENT_INVALID_AGENTTYPEATTR_RADIUSTYPE
Invalid AgentTypeAttr RADIUS Type |
static SmApiResult |
CLIENT_INVALID_AUTHDIRNAME
Invalid Authentication Directory Name. |
static SmApiResult |
CLIENT_INVALID_AUTHVALIDATEMAP_MAPPING_TYPE
Invalid authentication and validation mapping type. |
static SmApiResult |
CLIENT_INVALID_OID
INVALID OID is passed. |
static SmApiResult |
CLIENT_MISSING_AUTHVALIDATEMAP_PROPERTY
Missing required property for AuthValidateMap. |
static SmApiResult |
CLIENT_NO_AGENTTYPE
No AgentType set for AgentTypeAttr |
static SmApiResult |
CLIENT_NOT_IMPLEMENTED
SiteMinder Java API method is not implemented. |
static SmApiResult |
CLIENT_NULL_PARAM_ERROR
Parameter can not be null. |
static SmApiResult |
CLIENT_SUCCESS
Indicates the result is a success. |
static SmApiResult |
CONNECTION_TIMEOUT
Connection timeout. |
static SmApiResult |
CORRUPT_BUFFER
Tunnel buffer corrupt. |
static SmApiResult |
DMS_MISMATCH_ARGUMENTS
Mismatched arguments in the search filter. |
static int |
FACILITY_APP
Application API-related results originated from an application facility. |
static int |
FACILITY_CLIENT
Client-related results originated from a client facility. |
static int |
FACILITY_CONNECTION
API connection-related results originated from a connection facility. |
static int |
FACILITY_DMS
DMS-related results originated from a DMS facility. |
static int |
FACILITY_IMS_CLIENT
Client-related results originated from an IMS facility. |
static int |
FACILITY_IMS_SERVER
Server-related results originated from an IMS facility. |
static int |
FACILITY_POLICY
Policy-related results originated from a policy facility. |
static int |
FACILITY_SERVER
Server-related results originated from a server facility. |
static SmApiResult |
INCORRECT_BUFFER_LENGTH
Incorrect buffer length. |
static SmApiResult |
INVALID_AGENT_CONNECTION
Invalid agent API connection. |
static SmApiResult |
INVALID_PARAMETERS
Incorrect parameters passed to the API call. |
static SmApiResult |
NO_SERVER_CONNECTION
No server connection. |
static SmApiResult |
POLICY_INVALID_ADDRESS
Invalid IP address. |
static SmApiResult |
POLICY_INVALID_ADDRESS_MODE
Invalid IP address mode. |
static SmApiResult |
POLICY_INVALID_AUTHAZ_MAP_TYPE
Invalid authentication and authorization map type. |
static SmApiResult |
POLICY_INVALID_GROUP_TYPE
Invalid group type. |
static int |
REASON_NONE
Indicates that there is no reason associated with the result. |
static SmApiResult |
SERVER_ADD_MEMBER
Failed to add the member to a group. |
static SmApiResult |
SERVER_AUTH_CHALLENGE
Authentication challenge. |
static SmApiResult |
SERVER_AUTH_REJECT
User authentication was rejected due to invalid credentials. |
static SmApiResult |
SERVER_BAD_ATTR_FORMAT
Attribute value not formatted properly |
static SmApiResult |
SERVER_BAD_FORMAT
Badly formatted command. |
static SmApiResult |
SERVER_CHANGE_PASSWORD
Failed to change the user password. |
static SmApiResult |
SERVER_CONFIGURATION_FAILURE
Unable to get server configuration. |
static SmApiResult |
SERVER_CREATE
Failed to create directory object. |
static SmApiResult |
SERVER_DELETE
Failed to delete the object. |
static SmApiResult |
SERVER_DIRECTORY_OBJECT
Directory connection failed or object does not exist. |
static SmApiResult |
SERVER_EXCEPTION
Server Exception while processing the API request. |
static SmApiResult |
SERVER_EXPIRED_SESSION
The session in the API request has expired. |
static SmApiResult |
SERVER_FAILURE
API request has failed. |
static SmApiResult |
SERVER_FETCH_DOMAIN
Failed to fetch the SiteMinder domain. |
static SmApiResult |
SERVER_FETCH_REALM
Failed to fetch the SiteMinder realm. |
static SmApiResult |
SERVER_FETCH_REG_SCHEME
Failed to fetch the SiteMinder registration scheme. |
static SmApiResult |
SERVER_FETCH_USER_DIR
Failed to fetch the SiteMinder user directory. |
static SmApiResult |
SERVER_GET_GROUPS
Failed to get groups. |
static SmApiResult |
SERVER_GET_PROPS
Failed to get object properties. |
static SmApiResult |
SERVER_GET_ROLES
Failed to get roles. |
static SmApiResult |
SERVER_GET_TEMP_PASSWORD
Could not generate a temporary password. |
static SmApiResult |
SERVER_IMEXPORT_CRYPTO_ERROR1
Policy Server-side crypto configuration error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_CRYPTO_ERROR2
Policy Server-side crypto configuration error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_CRYPTO_ERROR3
Crypto configuration error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_CRYPTO_INITIALIZE_ERROR
Crypto initialization error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_FILE_ERROR
File error during policy data import/export, |
static SmApiResult |
SERVER_IMEXPORT_INITIALIZATION_ERROR
Initialization error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_INVALID_MATCH
Invalid match during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_INVALID_OBJECT
Invalid object during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_INVALID_OID
Invalid OID during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_INVALID_PARENT
Invalid parent object during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_INVALID_PROPERTY
Invalid property during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_MIGRATION_CREATE_ERROR
Migration object creation error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_NO_DOMAIN
Wrong domain name supplied for policy data export. |
static SmApiResult |
SERVER_IMEXPORT_NO_IMS_DIRECTORY
Wrong IMS directory name supplied for policy data export. |
static SmApiResult |
SERVER_IMEXPORT_NO_IMS_ENV
Wrong IMS environment name supplied for policy data export. |
static SmApiResult |
SERVER_IMEXPORT_OBJECT_FETCH_ERROR
Unable to fetch object during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_OBJECT_NOTFOUND
Object not found during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_ODBS_ERROR
ODBC error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_OVERWRITE_ERROR
Overwrite error during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_POLICY_STORE_ERROR
Error opening policy store during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_PROPERTY_ACCESS_ERROR
Unable to access property during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_PROPERTY_NOTFOUND
Property not found during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_READ_ERROR
Error reading from file during policy data export. |
static SmApiResult |
SERVER_IMEXPORT_SITEMINDER_CREDENTIALS_ERROR
Error authenticating Siteminder aadminstrator credentials during policy data import/export. |
static SmApiResult |
SERVER_IMEXPORT_UNKNOWN_ERROR
Unknown error during policy data import. |
static SmApiResult |
SERVER_IMEXPORT_WRITE_ERROR
Error reading from file during policy data import. |
static SmApiResult |
SERVER_INVALID_DIRECTORY
Invalid user directory configuration. |
static SmApiResult |
SERVER_INVALID_OBJECTCLASS
Invalid object class. |
static SmApiResult |
SERVER_INVALID_PASSWORD
Password is invalid. |
static SmApiResult |
SERVER_INVALID_SESSION
The session in the API request is invalid. |
static SmApiResult |
SERVER_MISMATCH
Mismatch |
static SmApiResult |
SERVER_NO_COMMAND
The API request cannot be recognized. |
static SmApiResult |
SERVER_NO_ITEMS_FOUND
No items found. |
static SmApiResult |
SERVER_NO_SESSION
The API request did not contain any session information. |
static SmApiResult |
SERVER_NOT_AUTHORIZED
The user is not authorized to perform the API request. |
static SmApiResult |
SERVER_NOT_IMPLEMENTED
The API request is not implemented. |
static SmApiResult |
SERVER_PASSWORDSTATE
The SmDmsUserPWState object cannot be accessed correctly. |
static SmApiResult |
SERVER_POLICY_API
Policy API error occurred during the request. |
static SmApiResult |
SERVER_REMOVE_MEMBER
Failed to remove the member from a group. |
static SmApiResult |
SERVER_RESPONSE_TOO_BIG
The response is too big. |
static SmApiResult |
SERVER_SEARCH
Failed to search. |
static SmApiResult |
SERVER_SET_PROPS
Failed to set object properties. |
static SmApiResult |
SERVER_TOO_MANY_ITEMS_FOUND
Too many items found. |
static SmApiResult |
SERVER_USER_DIR_NOT_CONFIGURED
User directory not configured properly. |
static SmApiResult |
SERVER_USER_POLICY_IN_CONSISTENT_AND_BIT_MASK
Mismatched setting of AND bit between user policies of same user directory |
static SmApiResult |
SERVER_WORKFLOW_EXCEPTION
Exception caught in the workflow library. |
static SmApiResult |
SERVER_WORKFLOW_INIT
Could not load or initialize the workflow library. |
static SmApiResult |
SERVER_WORKFLOW_POSTPROCESS
Error occurred during workflow post-process. |
static SmApiResult |
SERVER_WORKFLOW_PREPROCESS
Error occurred during workflow pre-process. |
static int |
SEVERITY_ERROR
Indicates a severity level of error. |
static int |
SEVERITY_INFORMATIONAL
Indicates a severity level of informational. |
static int |
SEVERITY_SUCCESS
Indicates a severity level of success. |
static int |
SEVERITY_WARNING
Indicates a severity level of warning. |
static int |
SUCCESS
Status code success. |
| Constructor Summary | |
|---|---|
SmApiResult()
Creates an API result object. |
|
SmApiResult(int code,
java.lang.String message,
SmApiObject obj)
Creates an API result object
from a result code, result message, and SmApiObject. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object aResult)
Compares the result object specified in aResult
with the current result object. |
SmApiObject |
getDecoderObject()
Internal use only. |
int |
getError()
Gets the unique error code. |
int |
getFacility()
Gets the facility code associated with the error. |
java.lang.String |
getMessage()
Gets the error message associated with the error. |
int |
getReason()
Gets the reason code of the result. |
int |
getSeverity()
Gets the severity code associated with the error. |
int |
getStatus()
Gets the status code in the current facility. |
static int |
getStatus(int returnCode)
Gets the status code in the current facility. |
boolean |
isSuccess()
If the request is successful, the method returns true. |
java.lang.String |
toString()
Returns a string representation of the SmApiResult
object in the form of a set of entries separated by the ASCII space
character. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FACILITY_CONNECTION
API connection-related results originated from a connection facility.
Value is 0x00.
public static final int FACILITY_DMS
DMS-related results originated from a DMS facility.
Values is 0x01.
public static final int FACILITY_POLICY
Policy-related results originated from a policy facility.
Value is 0x02.
public static final int FACILITY_APP
Application API-related results originated from an application facility.
Value is 0x03.
public static final int FACILITY_SERVER
Server-related results originated from a server facility.
Value is 0x04.
public static final int FACILITY_CLIENT
Client-related results originated from a client facility.
Value is 0x05.
public static final int FACILITY_IMS_CLIENT
Client-related results originated from an IMS facility. (Result values defined in IMS package. This just prevents facility number collisions)
Value is 0x06.
public static final int FACILITY_IMS_SERVER
Server-related results originated from an IMS facility. (Result values defined in IMS package. This just prevents facility number collisions)
Value is 0x07.
public static final int SEVERITY_SUCCESS
Indicates a severity level of success.
Value is 0x00.
public static final int SEVERITY_INFORMATIONAL
Indicates a severity level of informational.
Value is 0x01.
public static final int SEVERITY_WARNING
Indicates a severity level of warning.
Value is 0x02.
public static final int SEVERITY_ERROR
Indicates a severity level of error.
Value is 0x03.
public static final int REASON_NONE
Indicates that there is no reason associated with the result.
Value is 0x00.
public static final int SUCCESS
Status code success. When the API request is successful, the Policy Server returns SUCCESS.
Value is 0.
public static final SmApiResult CLIENT_SUCCESS
public static final SmApiResult INVALID_AGENT_CONNECTION
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 1
Message : Invalid agent connection
public static final SmApiResult BUFFER_CREATION_FAILURE
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 2
Message : Could not create buffer for agent transaction
public static final SmApiResult INCORRECT_BUFFER_LENGTH
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 3
Message : Length of returned buffer is less than zero
public static final SmApiResult SERVER_CONFIGURATION_FAILURE
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 4
Message : Unable to get server configuration
public static final SmApiResult AGENT_INITIALIZATION_FAILURE
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 5
Message : Agent initialization failed
public static final SmApiResult NO_SERVER_CONNECTION
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 6
Message : No server connection
public static final SmApiResult CONNECTION_TIMEOUT
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 7
Message : Connection timed out
public static final SmApiResult AGENT_FAILURE
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 8
Message : Tunnel Agent failure
public static final SmApiResult CORRUPT_BUFFER
Facility : FACILITY_CONNECTION
Severity : SEVERITY_ERROR
Status : 9
Message : Corrupt buffer
public static final SmApiResult DMS_MISMATCH_ARGUMENTS
Facility : FACILITY_DMS
Severity : SEVERITY_ERROR
Status : 1
Message : Mismatched arguments in the filter
public static final SmApiResult POLICY_INVALID_ADDRESS_MODE
Facility : FACILITY_POLICY
Severity : SEVERITY_ERROR
Status : 1
Message : Invalid IP Address mode
public static final SmApiResult POLICY_INVALID_AUTHAZ_MAP_TYPE
Facility : FACILITY_POLICY
Severity : SEVERITY_ERROR
Status : 2
Message : Invalid authentication and authorization map type
public static final SmApiResult POLICY_INVALID_GROUP_TYPE
Facility : FACILITY_POLICY
Severity : SEVERITY_ERROR
Status : 3
Message : Invalid group type
public static final SmApiResult POLICY_INVALID_ADDRESS
Facility : FACILITY_POLICY
Severity : SEVERITY_ERROR
Status : 4
Message : Invalid IP Address
public static final SmApiResult SERVER_FAILURE
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 2
Message : Operation has failed
public static final SmApiResult SERVER_BAD_FORMAT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 3
Message : Badly formatted command
public static final SmApiResult SERVER_RESPONSE_TOO_BIG
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 4
Message : The response is too big
public static final SmApiResult SERVER_NOT_IMPLEMENTED
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 5
Message : Not implemented
public static final SmApiResult SERVER_NO_COMMAND
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 6
Message : Unrecognized command
public static final SmApiResult SERVER_EXCEPTION
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 7
Message : Server exception
public static final SmApiResult SERVER_NO_SESSION
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 8
Message : No session
public static final SmApiResult SERVER_EXPIRED_SESSION
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 9
Message : The session has expired
public static final SmApiResult SERVER_INVALID_SESSION
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 10
Message : The session is invalid
public static final SmApiResult SERVER_AUTH_REJECT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 11
Message : User was not authenticated
public static final SmApiResult SERVER_NOT_AUTHORIZED
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 12
Message : User is not authorized to perform this operation
public static final SmApiResult SERVER_INVALID_PASSWORD
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 13
Message : Password is invalid
public static final SmApiResult SERVER_CHANGE_PASSWORD
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 14
Message : Failed to change password
public static final SmApiResult SERVER_GET_TEMP_PASSWORD
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 15
Message : Could not generate temporary password
public static final SmApiResult SERVER_WORKFLOW_INIT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 16
Message : Could not load or init workflow library
public static final SmApiResult SERVER_WORKFLOW_EXCEPTION
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 17
Message : Exception caught in the workflow library
public static final SmApiResult SERVER_WORKFLOW_PREPROCESS
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 18
Message : Workflow preprocess error
public static final SmApiResult SERVER_WORKFLOW_POSTPROCESS
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 19
Message : Workflow post-process error
public static final SmApiResult SERVER_INVALID_OBJECTCLASS
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 20
Message : Invalid object class
public static final SmApiResult SERVER_INVALID_DIRECTORY
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 21
Message : Invalid user directory configuration
public static final SmApiResult SERVER_DIRECTORY_OBJECT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 22
Message : Directory connection failed or object does not exist
public static final SmApiResult SERVER_CREATE
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 23
Message : Could not create directory object
public static final SmApiResult SERVER_GET_PROPS
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 24
Message : Could not get object properties
public static final SmApiResult SERVER_SET_PROPS
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 25
Message : Could not set object properties
public static final SmApiResult SERVER_GET_GROUPS
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 26
Message : Could not get groups
public static final SmApiResult SERVER_GET_ROLES
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 27
Message : Could not get roles
public static final SmApiResult SERVER_ADD_MEMBER
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 28
Message : Could not add member to group entity
public static final SmApiResult SERVER_REMOVE_MEMBER
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 29
Message : Could not remove member from group entity
public static final SmApiResult SERVER_SEARCH
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 30
Message : Search failure
public static final SmApiResult SERVER_DELETE
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 31
Message : Could not delete object
public static final SmApiResult SERVER_FETCH_REALM
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 32
Message : Failed to fetch SiteMinder realm
public static final SmApiResult SERVER_FETCH_DOMAIN
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 33
Message : Failed to fetch SiteMinder domain
public static final SmApiResult SERVER_FETCH_REG_SCHEME
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 34
Message : Failed to fetch SiteMinder registration scheme
public static final SmApiResult SERVER_FETCH_USER_DIR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 35
Message : Failed to fetch SiteMinder user directory
public static final SmApiResult SERVER_POLICY_API
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 36
Message : Policy API error
public static final SmApiResult SERVER_AUTH_CHALLENGE
Facility : FACILITY_SERVER
Severity : SEVERITY_WARNING
Status : 37
Message : Authentication challenge
public static final SmApiResult SERVER_NO_ITEMS_FOUND
Facility : FACILITY_SERVER
Severity : SEVERITY_WARNING
Status : 38
Message : No items found
public static final SmApiResult SERVER_TOO_MANY_ITEMS_FOUND
Facility : FACILITY_SERVER
Severity : SEVERITY_WARNING
Status : 39
Message : Too many items found
public static final SmApiResult SERVER_USER_DIR_NOT_CONFIGURED
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 40
Message : User directory not configured
public static final SmApiResult SERVER_BAD_ATTR_FORMAT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 41
Message : Attribute value not formatted properly
public static final SmApiResult SERVER_MISMATCH
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 42
Message : Mismatch
public static final SmApiResult SERVER_PASSWORDSTATE
SmDmsUserPWState object cannot be accessed correctly.
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 43
Message : PasswordState can not be accessed correctly.
public static final SmApiResult SERVER_IMEXPORT_CRYPTO_ERROR1
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 44
Message : Unable to get crypto configuration. [1]
public static final SmApiResult SERVER_IMEXPORT_CRYPTO_ERROR2
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 45
Message : Unable to get crypto configuration. [2]
public static final SmApiResult SERVER_IMEXPORT_CRYPTO_ERROR3
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 46
Message : Unable to get crypto configuration. [3]
public static final SmApiResult SERVER_IMEXPORT_CRYPTO_INITIALIZE_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 47
Message : Unable to initialize crypto factory
public static final SmApiResult SERVER_IMEXPORT_POLICY_STORE_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 48
Message : Could not open policy store
public static final SmApiResult SERVER_IMEXPORT_SITEMINDER_CREDENTIALS_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 49
Message : Could not authenticate SiteMinder administrator. Credentials are not valid
public static final SmApiResult SERVER_IMEXPORT_NO_DOMAIN
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 50
Message : Could not find Passed domain
public static final SmApiResult SERVER_IMEXPORT_NO_IMS_ENV
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 51
Message : Could not find passed IMS environment
public static final SmApiResult SERVER_IMEXPORT_NO_IMS_DIRECTORY
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 52
Message : Could not find passed IMS directory
public static final SmApiResult SERVER_IMEXPORT_MIGRATION_CREATE_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 53
Message : Fatal Error: Failed to create a migration object
public static final SmApiResult SERVER_IMEXPORT_INVALID_OBJECT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 54
Message : Fatal Error: Invalid object
public static final SmApiResult SERVER_IMEXPORT_INVALID_PROPERTY
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 55
Message : Fatal Error: Invalid property
public static final SmApiResult SERVER_IMEXPORT_INVALID_OID
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 56
Message : Fatal Error: Invalid OID
public static final SmApiResult SERVER_IMEXPORT_INVALID_MATCH
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 57
Message : Fatal Error: Invalid Match
public static final SmApiResult SERVER_IMEXPORT_INVALID_PARENT
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 58
Message : Fatal Error: Invalid Parent Object
public static final SmApiResult SERVER_IMEXPORT_OBJECT_NOTFOUND
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 59
Message : Fatal Error: Object not found
public static final SmApiResult SERVER_IMEXPORT_PROPERTY_NOTFOUND
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 60
Message : Fatal Error: Property not found
public static final SmApiResult SERVER_IMEXPORT_OBJECT_FETCH_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 61
Message : Fatal Error: Unable to fetch object
public static final SmApiResult SERVER_IMEXPORT_PROPERTY_ACCESS_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 62
Message : Fatal Error: Unable to access property
public static final SmApiResult SERVER_IMEXPORT_OVERWRITE_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 63
Message : Fatal Error: Cannot overwrite
public static final SmApiResult SERVER_IMEXPORT_ODBS_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 64
Message : Fatal Error: ODBC error
public static final SmApiResult SERVER_IMEXPORT_INITIALIZATION_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 65
Message : Fatal Error: Failed initialization
public static final SmApiResult SERVER_IMEXPORT_FILE_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 66
Message : Fatal Error: File error
public static final SmApiResult SERVER_IMEXPORT_UNKNOWN_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 67
Message : Fatal Error: Unknown error
public static final SmApiResult SERVER_IMEXPORT_WRITE_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 68
Message : Could not write to file while import
public static final SmApiResult SERVER_IMEXPORT_READ_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 69
Message : Could not read from file while export
public static final SmApiResult SERVER_USER_POLICY_IN_CONSISTENT_AND_BIT_MASK
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 70
Message : Mismatched setting of AND bit between user policies of same user directory
public static final SmApiResult CLIENT_NULL_PARAM_ERROR
Facility : FACILITY_SERVER
Severity : SEVERITY_ERROR
Status : 71
Message : Parameter can not be null.
public static final SmApiResult CLIENT_NOT_IMPLEMENTED
Facility : FACILITY_CLIENT
Severity : SEVERITY_INFORMATIONAL
Status : 1
Message : Not implemented
public static final SmApiResult CLIENT_EXPORT_FILENAME_F
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 2
Message : Export Status: Overwrite option is specified, still no file name is set.
public static final SmApiResult CLIENT_EXPORT_SMDIFFILE_F
.smdif file for policy data export already exists
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 3
Message : Export Status: smdif file already exists. Use overwrite option, while setting the file name.
public static final SmApiResult CLIENT_EXPORT_CONFIG_F
.config file for policy data export already exists.
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 4
Message : Export Status: config file already exists. Use overwrite option, while setting the file name.
public static final SmApiResult CLIENT_IMPORT_NO_INPUTFILE_I
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 5
Message : Import Status: no input filename is set.
public static final SmApiResult CLIENT_IMPORT_OPEN_ERROR
.smdif file for policy data import.
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 6
Message : Import Status: Unable to open set smdif file.
public static final SmApiResult CLIENT_EXPORT_FILE_WRITE_ERROR
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 7
Message : Error in writing data to the file.
public static final SmApiResult CLIENT_IMPORT_FILE_READ_ERROR
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 8
Message : Error in reading data from the file.
public static final SmApiResult INVALID_PARAMETERS
Facility : FACILITY_APP
Severity : SEVERITY_ERROR
Status : 1
Message : Incorrect parameters passed to the API call.
public static final SmApiResult CLIENT_INVALID_AGENTTYPE_ACTION
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 9
Message : Only Authenticate Action allowed for RADIUS agent.
public static final SmApiResult CLIENT_INVALID_AGENTTYPE_RESOURCE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 10
Message : Invalid Resource type set for agent.
public static final SmApiResult CLIENT_INVALID_AGENTTYPE_SPECIFIC
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 11
Message : Invalid Agent type Specific type set for agent.
public static final SmApiResult CLIENT_NO_AGENTTYPE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 12
Message : No AgentType set for AgentTypeAttr.
public static final SmApiResult CLIENT_INVALID_AGENTTYPEATTR_ID
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 13
Message : AgentTypeAttr Identifier should be between 0 to 255.
public static final SmApiResult CLIENT_INVALID_AGENTTYPEATTR_DATATYPE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 14
Message : Invalid AgentTypeAttr DataType.
public static final SmApiResult CLIENT_INVALID_AGENTTYPEATTR_RADIUSTYPE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 15
Message : Invalid AgentTypeAttr RADIUS Type.
public static final SmApiResult CLIENT_INVALID_AGENTTYPEATTR_RADIUSBEHAVIOR
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 16
Message : Invalid AgentTypeAttr RADIUS Behavior.
public static final SmApiResult CLIENT_INVALID_AGENTTYPEATTR_DATATYPE_VALUE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 17
Message : Values allowed only for number data type.
public static final SmApiResult CLIENT_INVALID_AGENTTYPEATTR_NUMERICVALUE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 18
Message : Invalid Numeric Value.
public static final SmApiResult CLIENT_INVALID_AUTHVALIDATEMAP_MAPPING_TYPE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 19
Message : Invalid authentication and validation mapping type
public static final SmApiResult CLIENT_MISSING_AUTHVALIDATEMAP_PROPERTY
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 20
Message : Missing required property for AuthValidateMap
public static final SmApiResult CLIENT_INVALID_AUTHDIRNAME
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 21
Message :Invalid Authentication Directory Name.
public static final SmApiResult CLIENT_INVALID_AGENTTYPE
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 22
Message :Invalid Agent Type.
public static final SmApiResult CLIENT_INVALID_OID
Facility : FACILITY_CLIENT
Severity : SEVERITY_ERROR
Status : 23
Message : Invalid OID
| Constructor Detail |
|---|
public SmApiResult()
API result object.
public SmApiResult(int code,
java.lang.String message,
SmApiObject obj)
API result object
from a result code, result message, and SmApiObject.
code - Result code coming from the server.message - Error message associated with the result.obj - SmApiObject containing response of a request.| Method Detail |
|---|
public boolean isSuccess()
true. Otherwise
false.
public boolean equals(java.lang.Object aResult)
Compares the result object specified in aResult
with the current result object.
SmApiResult class.
By passing a result constant in the aResult
parameter, you can compare the associated result object with
the current result object.SERVER_INVALID_PASSWORD is compared against the current
result object result:
InetAddress address = InetAddress.getLocalHost();
SmApiResult result = apiSession.login(usr,pwd,address,0);
boolean resultStatus = result.equals(SmApiResult.SERVER_INVALID_PASSWORD);
equals in class java.lang.ObjectaResult - A result object to compare against the
current SmApiResult object.
true if the two result objects
match. Otherwise false.public int getReason()
administrator login failure
, a
change password failure
, or a Policy API method error.
public int getStatus()
public int getError()
public int getFacility()
public int getSeverity()
public java.lang.String getMessage()
public static int getStatus(int returnCode)
returnCode - Result code coming from the server.
public SmApiObject getDecoderObject()
Internal use only.
Returns anSmApiObject object containing the response of a request.
SmApiObject object.public java.lang.String toString()
SmApiResult
object in the form of a set of entries separated by the ASCII space
character. The entire set of entries is enclosed in braces ( [ ] ).[facility=facility severity=severity reason=reason
status=statusCode message=message]
toString in class java.lang.ObjectSmApiResult object.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||