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
.
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
getAuthenticationHeaders
public Map getAuthenticationHeaders(OAConfiguration oaConf,
AuthenticationData authData,
String clientIPAddress)
- Returns authentication headers to be added to a URLConnection.
- Parameters:
authConf
- configuration dataauthData
- authentication dataclientIPAddress
- 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 dataauthData
- authentication dataclientIPAddress
- 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.