at.knowcenter.wag.egov.egiz.sig.connectors.bku
Class DetachedBKUConnector.Environment

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

public static class DetachedBKUConnector.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 loc_ref_content
           
protected  String profile
           
protected static String RSA_CERT_ALG_KEY
          The configuration key for the RSA cert alg property.
protected  String sign_keybox_identifier
           
protected static String SIGN_KEYBOX_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 static String TEMPLATE_FILE_PREFIX
          BKU 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_url
           
protected static String VERIFY_URL_KEY
          The configuration key of the verify URL.
 
Constructor Summary
DetachedBKUConnector.Environment(String profile, String loc_ref_content)
          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 getLocRefContent()
          Returns the LocRef content.
 String getProfile()
           
 String getSignKeyboxIdentifier()
          Returns the sign keybox 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 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_KEYBOX_IDENTIFIER_KEY

protected static final String SIGN_KEYBOX_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
BKU 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

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

loc_ref_content

protected String loc_ref_content

sign_keybox_identifier

protected String sign_keybox_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

cert_alg_ecdsa

protected String cert_alg_ecdsa

cert_alg_rsa

protected String cert_alg_rsa
Constructor Detail

DetachedBKUConnector.Environment

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

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

getProfile

public String getProfile()

getLocRefContent

public String getLocRefContent()
Returns the LocRef content.

Returns:
Returns the LocRef content.

getSignKeyboxIdentifier

public String getSignKeyboxIdentifier()
Returns the sign keybox identifier.

Returns:
Returns the sign keybox 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.

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.