at.knowcenter.wag.egov.egiz.sig.connectors.mocca
Class LocRefDetachedMOCCAConnector.Environment

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

public static class LocRefDetachedMOCCAConnector.Environment
extends ConnectorEnvironment

Holds environment configuration information like templates.

Author:
wprinz

Field Summary
protected  String algorithmId
           
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_SUFFIX
          signing file template suffix
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_template
           
protected static String VERIFY_TEMPLATE_KEY
          The configuration key of the verify template.
protected static String VERIFY_TEMPLATE_SUFFIX
          verifing file template key suffix
 
Constructor Summary
LocRefDetachedMOCCAConnector.Environment(String profile, String loc_ref_content, String algorithmId)
          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()
          Returns the profile name.
 String getSignKeyboxIdentifier()
          Returns the sign keybox identifier.
 String getSignRequestTemplate()
          Returns the sign request template.
 String getSignURL()
          Returns the sign URL.
 String getVerifyTemplate()
          Returns the verify template.
 
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_SUFFIX

protected static final String SIGN_TEMPLATE_FILE_SUFFIX
signing file template suffix

See Also:
Constant Field Values

VERIFY_TEMPLATE_SUFFIX

protected static final String VERIFY_TEMPLATE_SUFFIX
verifing file template key suffix

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

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_template

protected String verify_template

cert_alg_ecdsa

protected String cert_alg_ecdsa

cert_alg_rsa

protected String cert_alg_rsa

algorithmId

protected String algorithmId
Constructor Detail

LocRefDetachedMOCCAConnector.Environment

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

Parameters:
profile - The configuration profile.
algorithmId - The algorithm identifer.
Throws:
ConnectorException - Thrown in case of an error.
Method Detail

getProfile

public String getProfile()
Returns the profile name.

Returns:
The profile name.

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.

getVerifyTemplate

public String getVerifyTemplate()
Returns the verify template.

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

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.