p12f.exe.otp.objects
Class OTPRequest

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

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

See Also:
Serialized Form

Field Summary
 java.lang.String aplicationId
          Identificador de la aplicación solicitante del OTP.
 java.lang.String oid
          Identificador del tercero solicitante del OTP.
static int OTP_TYPE_ALPHANUMERIC
           
static int OTP_TYPE_ALPHANUMERIC_MAY
           
static int OTP_TYPE_ALPHANUMERIC_MIN
           
static int OTP_TYPE_DIGITS_ONLY
           
static int OTP_TYPE_LETTERS_ONLY
           
static int OTP_TYPE_LETTERS_ONLY_MAY
           
static int OTP_TYPE_LETTERS_ONLY_MIN
           
 int otpLength
          Longitud del OTP.
 int otpLifeSeconds
          Tiempo de vida, en segundos, del OTP. -1 ilimitado.
 int otpMaxRetries
          Reintentos permitidos para validar el OTP. -1 ilimitado.
 int otpType
          Tipo de OTP.
 java.lang.String serviceId
          Identificador del servicio solicitante del OTP.
 
Constructor Summary
OTPRequest()
           
 
Method Summary
static OTPRequest getObject(java.lang.String xml)
          Convierte un XML en un objeto OTPRequest.
 java.lang.String toXML()
          Convierte un Objeto OTPRequest a XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OTP_TYPE_DIGITS_ONLY

public static final int OTP_TYPE_DIGITS_ONLY
See Also:
Constant Field Values

OTP_TYPE_LETTERS_ONLY

public static final int OTP_TYPE_LETTERS_ONLY
See Also:
Constant Field Values

OTP_TYPE_LETTERS_ONLY_MAY

public static final int OTP_TYPE_LETTERS_ONLY_MAY
See Also:
Constant Field Values

OTP_TYPE_LETTERS_ONLY_MIN

public static final int OTP_TYPE_LETTERS_ONLY_MIN
See Also:
Constant Field Values

OTP_TYPE_ALPHANUMERIC

public static final int OTP_TYPE_ALPHANUMERIC
See Also:
Constant Field Values

OTP_TYPE_ALPHANUMERIC_MAY

public static final int OTP_TYPE_ALPHANUMERIC_MAY
See Also:
Constant Field Values

OTP_TYPE_ALPHANUMERIC_MIN

public static final int OTP_TYPE_ALPHANUMERIC_MIN
See Also:
Constant Field Values

aplicationId

public java.lang.String aplicationId
Identificador de la aplicación solicitante del OTP.


serviceId

public java.lang.String serviceId
Identificador del servicio solicitante del OTP.


oid

public java.lang.String oid
Identificador del tercero solicitante del OTP.


otpLength

public int otpLength
Longitud del OTP.


otpLifeSeconds

public int otpLifeSeconds
Tiempo de vida, en segundos, del OTP. -1 ilimitado.


otpMaxRetries

public int otpMaxRetries
Reintentos permitidos para validar el OTP. -1 ilimitado.


otpType

public int otpType
Tipo de OTP.

Constructor Detail

OTPRequest

public OTPRequest()
Method Detail

toXML

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

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

getObject

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

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