at.knowcenter.wag.egov.egiz.sig.connectors.moa
Class DetachedLocRefMOAConnector.Environment

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.sig.connectors.ConnectorEnvironment
      extended byat.knowcenter.wag.egov.egiz.sig.connectors.moa.DetachedLocRefMOAConnector.Environment
Enclosing class:
DetachedLocRefMOAConnector

public static class DetachedLocRefMOAConnector.Environment
extends ConnectorEnvironment

Holds environment configuration information like templates.

Author:
wprinz

Field Summary
protected  String cert_alg_ecdsa
           
protected  String cert_alg_rsa
           
protected static String ECDSA_CERT_ALG_KEY
          The configuration key for the ECDSA cert alg property.
protected  String profile
           
protected static String RSA_CERT_ALG_KEY
          The configuration key for the RSA cert alg property.
protected  String sign_key_identifier
           
protected static String SIGN_KEY_IDENTIFIER_KEY
          The configuration key of the sign keybox identifier.
protected  String sign_request_template
           
protected static String SIGN_REQUEST_TEMPLATE_KEY
          The configuration key of the sign request template.
protected static String SIGN_TEMPLATE_FILE_SUFIX
          signing file template sufix
protected  String sign_url
           
protected static String SIGN_URL_KEY
          The configuration key of the sign URL.
protected  String signature_data_url
           
protected static String TEMPLATE_FILE_PREFIX
          MOA template file prefix
protected  String verify_request_template
           
protected static String VERIFY_REQUEST_TEMPLATE_FILE_SUFIX
          verifing template file sufix
protected static String VERIFY_REQUEST_TEMPLATE_KEY
          The configuration key of the verify request template.
protected  String verify_template
           
protected static String VERIFY_TEMPLATE_KEY
          The configuration key of the verify template.
protected static String VERIFY_TEMPLATE_SUFIX
          verifing file template key sufix
protected  String verify_trust_profile_id
           
protected static String VERIFY_TRUST_PROFILE_ID
          The configuration key of the trust profile id.
protected  String verify_url
           
protected static String VERIFY_URL_KEY
          The configuration key of the verify URL.
 
Constructor Summary
DetachedLocRefMOAConnector.Environment(String profile, String signature_data_url)
          Initializes the environment with a given profile.
 
Method Summary
 String getCertAlgEcdsa()
          Returns the ecdsa cert alg property.
 String getCertAlgRsa()
          Returns the rsa cert alg property.
static String getConnectorValueFromProfile(SettingsReader settings, String profile, String key)
          Reads the configuration entry given by the key, first from the given profile, if not found from the defaults.
 String getProfile()
           
 String getSignatureDataUrl()
          Returns the URL where to load the detached data from.
 String getSignKeyIdentifier()
          Returns the sign key identifier.
 String getSignRequestTemplate()
          Returns the sign request template.
 String getSignURL()
          Returns the sign URL.
 String getVerifyRequestTemplate()
          Returns the verify request template.
 String getVerifyTemplate()
          Returns the verify template.
 String getVerifyTrustProfileId()
          Returns the verify trust profile id.
 String getVerifyURL()
          Returns the verify URL.
 
Methods inherited from class at.knowcenter.wag.egov.egiz.sig.connectors.ConnectorEnvironment
getDefaultAlgForCert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGN_KEY_IDENTIFIER_KEY

protected static final String SIGN_KEY_IDENTIFIER_KEY
The configuration key of the sign keybox identifier.

See Also:
Constant Field Values

SIGN_REQUEST_TEMPLATE_KEY

protected static final String SIGN_REQUEST_TEMPLATE_KEY
The configuration key of the sign request template.

See Also:
Constant Field Values

SIGN_URL_KEY

protected static final String SIGN_URL_KEY
The configuration key of the sign URL.

See Also:
Constant Field Values

TEMPLATE_FILE_PREFIX

protected static final String TEMPLATE_FILE_PREFIX
MOA template file prefix

See Also:
Constant Field Values

SIGN_TEMPLATE_FILE_SUFIX

protected static final String SIGN_TEMPLATE_FILE_SUFIX
signing file template sufix

See Also:
Constant Field Values

VERIFY_REQUEST_TEMPLATE_FILE_SUFIX

protected static final String VERIFY_REQUEST_TEMPLATE_FILE_SUFIX
verifing template file sufix

See Also:
Constant Field Values

VERIFY_TEMPLATE_SUFIX

protected static final String VERIFY_TEMPLATE_SUFIX
verifing file template key sufix

See Also:
Constant Field Values

VERIFY_REQUEST_TEMPLATE_KEY

protected static final String VERIFY_REQUEST_TEMPLATE_KEY
The configuration key of the verify request template.

See Also:
Constant Field Values

VERIFY_TEMPLATE_KEY

protected static final String VERIFY_TEMPLATE_KEY
The configuration key of the verify template.

See Also:
Constant Field Values

VERIFY_URL_KEY

protected static final String VERIFY_URL_KEY
The configuration key of the verify URL.

See Also:
Constant Field Values

VERIFY_TRUST_PROFILE_ID

protected static final String VERIFY_TRUST_PROFILE_ID
The configuration key of the trust profile id.

See Also:
Constant Field Values

ECDSA_CERT_ALG_KEY

protected static final String ECDSA_CERT_ALG_KEY
The configuration key for the ECDSA cert alg property.

See Also:
Constant Field Values

RSA_CERT_ALG_KEY

protected static final String RSA_CERT_ALG_KEY
The configuration key for the RSA cert alg property.

See Also:
Constant Field Values

profile

protected String profile

signature_data_url

protected String signature_data_url

sign_key_identifier

protected String sign_key_identifier

sign_request_template

protected String sign_request_template

sign_url

protected String sign_url

verify_request_template

protected String verify_request_template

verify_template

protected String verify_template

verify_url

protected String verify_url

verify_trust_profile_id

protected String verify_trust_profile_id

cert_alg_ecdsa

protected String cert_alg_ecdsa

cert_alg_rsa

protected String cert_alg_rsa
Constructor Detail

DetachedLocRefMOAConnector.Environment

public DetachedLocRefMOAConnector.Environment(String profile,
                                              String signature_data_url)
                                       throws ConnectorException
Initializes the environment with a given profile.

Parameters:
profile - The configuration profile.
Throws:
SettingsException - f.e.
ConnectorException - f.e.
Method Detail

getProfile

public String getProfile()

getSignatureDataUrl

public String getSignatureDataUrl()
Returns the URL where to load the detached data from.

Returns:
Returns the URL where to load the detached data from.

getSignKeyIdentifier

public String getSignKeyIdentifier()
Returns the sign key identifier.

Returns:
Returns the sign key identifier.

getSignRequestTemplate

public String getSignRequestTemplate()
Returns the sign request template.

Returns:
Returns the sign request template.

getSignURL

public String getSignURL()
Returns the sign URL.

Returns:
Returns the sign URL.

getVerifyRequestTemplate

public String getVerifyRequestTemplate()
Returns the verify request template.

Returns:
Returns the verify request template.

getVerifyTemplate

public String getVerifyTemplate()
Returns the verify template.

Specified by:
getVerifyTemplate in class ConnectorEnvironment
Returns:
Returns the verify template.

getVerifyURL

public String getVerifyURL()
Returns the verify URL.

Returns:
Returns the verify URL.

getVerifyTrustProfileId

public String getVerifyTrustProfileId()
Returns the verify trust profile id.

Returns:
Returns the verify trust profile id.

getCertAlgEcdsa

public String getCertAlgEcdsa()
Returns the ecdsa cert alg property.

Specified by:
getCertAlgEcdsa in class ConnectorEnvironment
Returns:
Returns the ecdsa cert alg property.

getCertAlgRsa

public String getCertAlgRsa()
Returns the rsa cert alg property.

Specified by:
getCertAlgRsa in class ConnectorEnvironment
Returns:
Returns the rsa cert alg property.

getConnectorValueFromProfile

public static String getConnectorValueFromProfile(SettingsReader settings,
                                                  String profile,
                                                  String key)
Reads the configuration entry given by the key, first from the given profile, if not found from the defaults.

Parameters:
settings - The settings.
profile - The profile.
key - The configuration key.
Returns:
Returns the configuration entry.


Copyright © 2006-2010. All Rights Reserved.