at.gv.egovernment.moa.id.proxy
Interface LoginParameterResolver


public interface LoginParameterResolver

Determines authentication parameters and headers to be added to a URLConnection to the remote online application. Utilizes OAConfiguration and AuthenticationData.


Field Summary
static String MOABKZ
           
static String MOADateOfBirth
           
static String MOAFamilyName
           
static String MOAGivenName
          Constants used in MOAIDConfiguration-1.1.xsd, type MOAAuthDataType, naming predicates used by the LoginParameterResolver.
static String MOAIPAddress
           
static String MOAPublicAuthority
           
static String MOAQualifiedCertificate
           
static String MOAVPK
           
static String MOAZMRZahl
           
 
Method Summary
 Map getAuthenticationHeaders(OAConfiguration oaConf, AuthenticationData authData, String clientIPAddress)
          Returns authentication headers to be added to a URLConnection.
 Map getAuthenticationParameters(OAConfiguration oaConf, AuthenticationData authData, String clientIPAddress)
          Returns request parameters to be added to a URLConnection.
 

Field Detail

MOAGivenName

public static final String MOAGivenName
Constants used in MOAIDConfiguration-1.1.xsd, type MOAAuthDataType, naming predicates used by the LoginParameterResolver.

MOAFamilyName

public static final String MOAFamilyName

MOADateOfBirth

public static final String MOADateOfBirth

MOAVPK

public static final String MOAVPK

MOAPublicAuthority

public static final String MOAPublicAuthority

MOABKZ

public static final String MOABKZ

MOAQualifiedCertificate

public static final String MOAQualifiedCertificate

MOAZMRZahl

public static final String MOAZMRZahl

MOAIPAddress

public static final String MOAIPAddress
Method Detail

getAuthenticationHeaders

public Map getAuthenticationHeaders(OAConfiguration oaConf,
                                    AuthenticationData authData,
                                    String clientIPAddress)
Returns authentication headers to be added to a URLConnection.
Parameters:
authConf - configuration data
authData - authentication data
clientIPAddress - client IP address
Returns:
A map, the keys being header names and values being corresponding header values.
In case of authentication type "basic-auth", header fields username and password.
In case of authentication type "header-auth", header fields derived from parameter mapping and authentication data provided.
Otherwise, an empty map.

getAuthenticationParameters

public Map getAuthenticationParameters(OAConfiguration oaConf,
                                       AuthenticationData authData,
                                       String clientIPAddress)
Returns request parameters to be added to a URLConnection.
Parameters:
authConf - configuration data
authData - authentication data
clientIPAddress - client IP address
Returns:
A map, the keys being parameter names and values being corresponding parameter values.
In case of authentication type "param-auth", parameters derived from parameter mapping and authentication data provided.
Otherwise, an empty map.