Oracle Secure Global Desktop Web Services API Documentation
Release 4.7

E21396-02

com.tarantella.tta.webservices.client.views
Class DataRequest

java.lang.Object
  extended by com.tarantella.tta.webservices.client.views.DataRequest
All Implemented Interfaces:
java.io.Serializable

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

The class manages requests for additional authentication data from the Secure Global Desktop (SGD) server. It is a support class that works with SessionBean.authenticateExt(String, String, String, String, Item[], Item[]) and SessionBean.authenticateMoreInfoPrompts().

Each instance handles a single piece of additional data needed for authentication to succeed. The features on the attribute are meta-data and indicate properties that can be useful in constructing a GUI to acquire the value. For example, the features may suggest a prompt, whether the data is sensitive and should not be displayed, what size of value is expected.

See also IConstantsGUI.

See Also:
Serialized Form

Constructor Summary
DataRequest(DataRequest source)
          Constructor.
DataRequest(java.lang.String attributeName)
          Constructor.
 
Method Summary
 java.lang.String getAttributeName()
          Gets the name of the attribute.
 boolean getFeature(java.lang.String name, boolean defaultValue)
          Gets a boolean feature.
 int getFeature(java.lang.String name, int defaultValue)
          Gets an integer feature.
 java.lang.String getFeature(java.lang.String name, java.lang.String defaultValue)
          Gets a string feature.
 java.util.HashMap getFeatures()
          Gets all the features.
 void setFeature(java.lang.String name, boolean value)
          Sets a boolean feature.
 void setFeature(java.lang.String name, int value)
          Sets an integer feature.
 void setFeature(java.lang.String name, java.lang.String value)
          Sets a string feature.
 void setFeatures(java.util.HashMap source)
          Sets all features.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRequest

public DataRequest(java.lang.String attributeName)
Constructor.

Parameters:
attributeName - Name of the attribute handled by this object.
Since:
1.0

DataRequest

public DataRequest(DataRequest source)
Constructor.

Parameters:
source - Object to copy.
Since:
1.0
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Gets the name of the attribute.

Returns:
The name of the attribute.
Since:
1.0

setFeature

public void setFeature(java.lang.String name,
                       int value)
Sets an integer feature.

Parameters:
name - The name of the feature.
value - The value.
Since:
1.0

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
Sets a boolean feature.

Parameters:
name - The name of the feature.
value - The value.
Since:
1.0

setFeature

public void setFeature(java.lang.String name,
                       java.lang.String value)
Sets a string feature.

Parameters:
name - The name of the feature.
value - The value.
Since:
1.0

getFeature

public int getFeature(java.lang.String name,
                      int defaultValue)
Gets an integer feature.

Parameters:
name - The name of the feature.
defaultValue - The value to return if the feature is missing.
Returns:
The value of the feature or the default value.
Since:
1.0

getFeature

public boolean getFeature(java.lang.String name,
                          boolean defaultValue)
Gets a boolean feature.

Parameters:
name - The name of the feature.
defaultValue - The value to return if the feature is missing.
Returns:
The value of the feature or the default value.
Since:
1.0

getFeature

public java.lang.String getFeature(java.lang.String name,
                                   java.lang.String defaultValue)
Gets a string feature.

Parameters:
name - The name of the feature.
defaultValue - The value to return if the feature is missing.
Returns:
The value of the feature or the default value.
Since:
1.0

getFeatures

public java.util.HashMap getFeatures()
Gets all the features.

Returns:
The features.
Since:
1.1

setFeatures

public void setFeatures(java.util.HashMap source)
Sets all features.

Parameters:
source - The features.
Since:
1.1

Oracle Secure Global Desktop Web Services API Documentation
Release 4.7

E21396-02

Copyright © 2012, 2013, Oracle and/or its affiliates. All rights reserved.