public class VoiceChallenge extends java.lang.Object implements IChallenge
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<VoiceChallenge> |
CREATOR
Creates an instance from a parcel.
|
Constructor and Description |
---|
VoiceChallenge()
Initializes a new
VoiceChallenge mechanism. |
VoiceChallenge(java.lang.String messagePrompt)
Returns an instance containing a new
IChallenge with a message. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Returns a bitmask indicating the set of special object types marshaled by this Parcelable
object instance.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getChallengeData()
Returns the challengeData of the mechanism.
|
java.lang.String |
getChallengeText()
Returns text representing the server challenge which requires signing.
|
java.lang.String |
getDescription()
Returns the description of the mechanism.
|
java.lang.String |
getIdentifier()
Returns the identifier of the mechanism.
|
java.lang.String |
getKeyName()
Returns the type's identifier, used to access the private key in the keystore.
|
java.lang.String |
getMessagePrompt()
Returns the message to display in the alert when prompted.
|
java.lang.String |
getPostbackUri()
Returns the postback URI of the mechanism.
|
java.lang.String |
getState()
Returns the unique identifier of the mechanism request.
|
java.lang.String |
getType()
Returns the type of the enrollment challenge.
|
void |
launchUI(android.app.Activity activity,
IChallengeCallbackHandleUserInput callback)
This method isn't implemented yet.
|
IChallenge |
parse(org.json.JSONObject data)
Returns an instance of
IChallenge parsed from the object. |
void |
setChallengeData(java.util.HashMap<java.lang.String,java.lang.Object> challengeData)
Set the challengeData of the mechanism.
|
void |
setKeyName(java.lang.String keyName)
Set the type's identifier, used to access the private key in the keystore.
|
void |
setPostbackUri(java.lang.String postbackUri)
The postback URI of the mechanism.
|
void |
setState(java.lang.String state)
Set the unique identifier of the mechanism request.
|
void |
writeToParcel(android.os.Parcel parcel,
int i)
Writes the object into a parcel.
|
public static final android.os.Parcelable.Creator<VoiceChallenge> CREATOR
public VoiceChallenge()
VoiceChallenge
mechanism.public VoiceChallenge(java.lang.String messagePrompt)
IChallenge
with a message.messagePrompt
- the message to display.java.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String getDescription()
getDescription
in interface IChallenge
public java.util.HashMap<java.lang.String,java.lang.Object> getChallengeData()
launchUI(Activity, IChallengeCallbackHandleUserInput)
function.public void setChallengeData(java.util.HashMap<java.lang.String,java.lang.Object> challengeData)
challengeData
- the data to be setjava.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String getType()
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- the name of the key in the key storejava.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String getIdentifier()
urn:ibm:security:authentication:asf:mechanism:mobile_user_approval:voice
getIdentifier
in interface IChallenge
public java.lang.String getMessagePrompt()
getMessagePrompt
in interface IChallenge
public java.lang.String getPostbackUri()
getPostbackUri
in interface IChallenge
public void setPostbackUri(java.lang.String postbackUri)
setPostbackUri
in interface IChallenge
postbackUri
- the postback URI of the mechanismjava.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String getState()
getState
in interface IChallenge
public void setState(java.lang.String state)
setState
in interface IChallenge
state
- unique identifier to be setpublic java.lang.String getChallengeText()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable
parcel
- the parcel where the object is written intoi
- flags about how the object should be writtenpublic IChallenge parse(org.json.JSONObject data)
IChallenge
parsed from the object.parse
in interface IChallenge
data
- the object to deserialize fromIChallenge
public void launchUI(android.app.Activity activity, IChallengeCallbackHandleUserInput callback)
UnsupportedOperationException
.launchUI
in interface IChallenge
callback
- the function delegate that is invokedjava.lang.UnsupportedOperationException
- as it is not implemented yet