p12f.exe.otp.objects
Class OTPError

java.lang.Object
  extended byp12f.exe.otp.objects.OTPError
All Implemented Interfaces:
java.io.Serializable

public class OTPError
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int GENERATE_NO_APLICATION_ID
           
static int GENERATE_NO_OID
           
static int GENERATE_NO_SERVICE_ID
           
static int GENERATE_OTHER
           
static int NO_ERROR
           
 int otpErrorCode
           
 java.lang.String otpErrorMsg
           
static int SEND_MAIL
           
static int SEND_MAIL_MALFORMED_MAIL_TO_SEND
           
static int SEND_MAIL_NO_MAIL_TO_SEND
           
static int SEND_MAIL_NO_OTP_IN_MSG
           
static int SEND_MAIL_NO_TEMPLATE
           
static int SEND_NO_APLICATION_ID
           
static int SEND_NO_OID
           
static int SEND_NO_OTP
           
static int SEND_NO_OTP_ID
           
static int SEND_NO_PRESENTATION_DATA_TYPE
           
static int SEND_NO_SERVICE_ID
           
static int SEND_OTHER
           
static int SEND_SMS
           
static int SEND_SMS_MALFORMED_PHONE_NUMBER
           
static int SEND_SMS_NO_OTP_IN_MSG
           
static int SEND_SMS_NO_PHONE_NUMBER
           
static int VALIDATE_EXPIRED
           
static int VALIDATE_NO_APLICATION_ID
           
static int VALIDATE_NO_OID
           
static int VALIDATE_NO_OTP
           
static int VALIDATE_NO_OTP_ID
           
static int VALIDATE_NO_RETRIES
           
static int VALIDATE_NO_SERVICE_ID
           
static int VALIDATE_OTHER
           
static int VALIDATE_WRONG_OTP
           
 
Constructor Summary
OTPError()
           
OTPError(int otpErrorCode)
           
OTPError(int otpErrorCode, java.lang.String otpErrorMsg)
           
 
Method Summary
static OTPError getObject(java.lang.String xml)
          Convierte un XML en un objeto OTPError.
 java.lang.String toXML()
          Convierte un Objeto OTPError a XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ERROR

public static final int NO_ERROR
See Also:
Constant Field Values

GENERATE_NO_APLICATION_ID

public static final int GENERATE_NO_APLICATION_ID
See Also:
Constant Field Values

GENERATE_NO_SERVICE_ID

public static final int GENERATE_NO_SERVICE_ID
See Also:
Constant Field Values

GENERATE_NO_OID

public static final int GENERATE_NO_OID
See Also:
Constant Field Values

GENERATE_OTHER

public static final int GENERATE_OTHER
See Also:
Constant Field Values

VALIDATE_NO_OTP

public static final int VALIDATE_NO_OTP
See Also:
Constant Field Values

VALIDATE_NO_APLICATION_ID

public static final int VALIDATE_NO_APLICATION_ID
See Also:
Constant Field Values

VALIDATE_NO_SERVICE_ID

public static final int VALIDATE_NO_SERVICE_ID
See Also:
Constant Field Values

VALIDATE_NO_OID

public static final int VALIDATE_NO_OID
See Also:
Constant Field Values

VALIDATE_NO_OTP_ID

public static final int VALIDATE_NO_OTP_ID
See Also:
Constant Field Values

VALIDATE_NO_RETRIES

public static final int VALIDATE_NO_RETRIES
See Also:
Constant Field Values

VALIDATE_EXPIRED

public static final int VALIDATE_EXPIRED
See Also:
Constant Field Values

VALIDATE_WRONG_OTP

public static final int VALIDATE_WRONG_OTP
See Also:
Constant Field Values

VALIDATE_OTHER

public static final int VALIDATE_OTHER
See Also:
Constant Field Values

SEND_NO_OTP

public static final int SEND_NO_OTP
See Also:
Constant Field Values

SEND_NO_APLICATION_ID

public static final int SEND_NO_APLICATION_ID
See Also:
Constant Field Values

SEND_NO_SERVICE_ID

public static final int SEND_NO_SERVICE_ID
See Also:
Constant Field Values

SEND_NO_OID

public static final int SEND_NO_OID
See Also:
Constant Field Values

SEND_NO_OTP_ID

public static final int SEND_NO_OTP_ID
See Also:
Constant Field Values

SEND_NO_PRESENTATION_DATA_TYPE

public static final int SEND_NO_PRESENTATION_DATA_TYPE
See Also:
Constant Field Values

SEND_MAIL

public static final int SEND_MAIL
See Also:
Constant Field Values

SEND_MAIL_NO_MAIL_TO_SEND

public static final int SEND_MAIL_NO_MAIL_TO_SEND
See Also:
Constant Field Values

SEND_MAIL_MALFORMED_MAIL_TO_SEND

public static final int SEND_MAIL_MALFORMED_MAIL_TO_SEND
See Also:
Constant Field Values

SEND_MAIL_NO_TEMPLATE

public static final int SEND_MAIL_NO_TEMPLATE
See Also:
Constant Field Values

SEND_MAIL_NO_OTP_IN_MSG

public static final int SEND_MAIL_NO_OTP_IN_MSG
See Also:
Constant Field Values

SEND_SMS

public static final int SEND_SMS
See Also:
Constant Field Values

SEND_SMS_NO_PHONE_NUMBER

public static final int SEND_SMS_NO_PHONE_NUMBER
See Also:
Constant Field Values

SEND_SMS_MALFORMED_PHONE_NUMBER

public static final int SEND_SMS_MALFORMED_PHONE_NUMBER
See Also:
Constant Field Values

SEND_SMS_NO_OTP_IN_MSG

public static final int SEND_SMS_NO_OTP_IN_MSG
See Also:
Constant Field Values

SEND_OTHER

public static final int SEND_OTHER
See Also:
Constant Field Values

otpErrorCode

public int otpErrorCode

otpErrorMsg

public java.lang.String otpErrorMsg
Constructor Detail

OTPError

public OTPError()

OTPError

public OTPError(int otpErrorCode)

OTPError

public OTPError(int otpErrorCode,
                java.lang.String otpErrorMsg)
Method Detail

toXML

public java.lang.String toXML()
                       throws com.ejie.r01f.xml.marshalling.XOMarshallerException
Convierte un Objeto OTPError a XML.

Returns:
String que contiene el XML.
Throws:
com.ejie.r01f.xml.marshalling.XOMarshallerException

getObject

public static OTPError getObject(java.lang.String xml)
                          throws com.ejie.r01f.xml.marshalling.XOMarshallerException
Convierte un XML en un objeto OTPError.

Returns:
Objeto OTPError construido a partir del XML.
Throws:
com.ejie.r01f.xml.marshalling.XOMarshallerException