|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.authz.common.config.AbstractIniConfigurationParser<ConfigurationType>
ConfigurationType
- the type of configuration produced by this parser@ThreadSafe public abstract class AbstractIniConfigurationParser<ConfigurationType extends AbstractConfiguration>
Base class for configuration parsers that employ an INI file.
Field Summary | |
---|---|
static java.lang.String |
CONN_TIMEOUT_PROP
The name of the "connectionTimeout" which gives the connection timeout, in seconds. |
static int |
DEFAULT_CONN_TIMEOUT
Default value of the "connectionTimeout" property, 30 seconds. |
static int |
DEFAULT_MAX_REQS
Default value of the "maximumRequests" property, 200 . |
static int |
DEFAULT_REC_BUFF_SIZE
Default value of the "receiveBufferSize" property, 16384 kilobytes. |
static int |
DEFAULT_SEND_BUFF_SIZE
Default value of the "sendBufferSize" property, 16384 kilobytes. |
static int |
DEFAULT_TRUST_INFO_REFRESH
Default value of the "trustInfoRefresh" property, 60 . |
static java.lang.String |
MAX_REQUESTS_PROP
The name of the "maximumRequests" which gives the maximum number of simultaneous requests. |
static java.lang.String |
REC_BUFF_SIZE_PROP
The name of the "receiveBufferSize" which gives the size of the receiving message buffer, in bytes. |
static java.lang.String |
SECURITY_SECTION_HEADER
The name of the "SECURITY" INI header which contains the property for configuring credential/trust information. |
static java.lang.String |
SEND_BUFF_SIZE_PROP
The name of the "sendBufferSize" which gives the sending message buffer, in bytes. |
static java.lang.String |
SERVICE_CERT_PROP
The name of the "serviceCertificate" which gives the path to the service's certificate. |
static java.lang.String |
SERVICE_KEY_PROP
The name of the "servicePrivateKey" which gives the path to the service's private key. |
static java.lang.String |
TRUST_INFO_DIR_PROP
The name of the "trustInfoDir" which gives the path to directory of PEM-encoded trusted X.509 certificates. |
static java.lang.String |
TRUST_INFO_REFRSH_PROP
The name of the "trustInfoRefresh" which gives the refresh period, in minutes, for the trust information. |
Constructor Summary | |
---|---|
AbstractIniConfigurationParser()
|
Method Summary | |
---|---|
protected int |
getConnectionTimeout(org.ini4j.Profile.Section configSection)
Gets the value of the "connectionTimeout" property from the configuration section. |
protected int |
getMaximumRequests(org.ini4j.Profile.Section configSection)
Gets the value of the "maximumRequests" property from the configuration section. |
protected int |
getReceiveBufferSize(org.ini4j.Profile.Section configSection)
Gets the value of the "receiveBufferSize" property from the configuration section. |
protected int |
getSendBufferSize(org.ini4j.Profile.Section configSection)
Gets the value of the "sendBufferSize" property from the configuration section. |
protected int |
getTrustMaterialRefreshInterval(org.ini4j.Profile.Section configSection)
Gets the value of the "trustInfoRefresh" property from the configuration section. |
protected javax.net.ssl.X509KeyManager |
getX509KeyManager(org.ini4j.Profile.Section configSection)
Creates a KeyManager from the "servicePrivateKey" and "serviceCertificate"
properties, if they exist. |
protected org.glite.voms.PKIStore |
getX509TrustMaterialStore(org.ini4j.Profile.Section configSection)
Creates a PKIStore from the "trustInfoDir" property, if they exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.glite.authz.common.config.ConfigurationParser |
---|
parse, parse |
Field Detail |
---|
public static final java.lang.String SECURITY_SECTION_HEADER
public static final java.lang.String SERVICE_KEY_PROP
public static final java.lang.String SERVICE_CERT_PROP
public static final java.lang.String TRUST_INFO_DIR_PROP
public static final java.lang.String TRUST_INFO_REFRSH_PROP
public static final java.lang.String MAX_REQUESTS_PROP
public static final java.lang.String CONN_TIMEOUT_PROP
public static final java.lang.String REC_BUFF_SIZE_PROP
public static final java.lang.String SEND_BUFF_SIZE_PROP
public static final int DEFAULT_TRUST_INFO_REFRESH
public static final int DEFAULT_MAX_REQS
public static final int DEFAULT_CONN_TIMEOUT
public static final int DEFAULT_REC_BUFF_SIZE
public static final int DEFAULT_SEND_BUFF_SIZE
Constructor Detail |
---|
public AbstractIniConfigurationParser()
Method Detail |
---|
protected int getConnectionTimeout(org.ini4j.Profile.Section configSection)
configSection
- configuration section from which to extract the value
protected int getMaximumRequests(org.ini4j.Profile.Section configSection)
configSection
- configuration section from which to extract the value
protected int getReceiveBufferSize(org.ini4j.Profile.Section configSection)
configSection
- configuration section from which to extract the value
protected int getSendBufferSize(org.ini4j.Profile.Section configSection)
configSection
- configuration section from which to extract the value
protected int getTrustMaterialRefreshInterval(org.ini4j.Profile.Section configSection)
configSection
- configuration section from which to extract the value
protected javax.net.ssl.X509KeyManager getX509KeyManager(org.ini4j.Profile.Section configSection) throws ConfigurationException
KeyManager
from the "servicePrivateKey" and "serviceCertificate"
properties, if they exist.
configSection
- current configuration section being processed
ConfigurationException
- thrown if there is a problem creating the key managerprotected org.glite.voms.PKIStore getX509TrustMaterialStore(org.ini4j.Profile.Section configSection) throws ConfigurationException
PKIStore
from the "trustInfoDir" property, if they exist. This store holds the
material used to validate X.509 certificates.
configSection
- current configuration section being processed
ConfigurationException
- thrown if there is a problem creating the trust manager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |