org.glite.authz.common.config
Class AbstractConfiguration

java.lang.Object
  extended by org.glite.authz.common.config.AbstractConfiguration
Direct Known Subclasses:
AbstractServiceConfiguration

@ThreadSafe
public abstract class AbstractConfiguration
extends java.lang.Object

Base configuration implementation for PEP clients and daemons.


Field Summary
static java.lang.String BINDING_NAME
          Key under which a configuration object might be bound.
 
Constructor Summary
protected AbstractConfiguration()
          Constructor.
 
Method Summary
 int getConnectionTimeout()
          Gets the connection socket timeout, in milliseconds.
 javax.net.ssl.X509KeyManager getKeyManager()
          Gets the credential used by this service to create SSL connections and digital signatures.
 int getMaxRequests()
          Gets the maximum number of concurrent connections that may be in-process at one time.
 int getReceiveBufferSize()
          Gets the size of the buffer, in bytes, used when receiving data.
 int getSendBufferSize()
          Gets the size of the buffer, in bytes, used when sending data.
 javax.net.ssl.X509TrustManager getTrustManager()
          Gets the trust manager used to evaluate X509 certificates.
 org.glite.voms.PKIStore getTrustMaterialStore()
          Gets the store containing the trust material used to validate X509 certificates.
protected  void setConnectionTimeout(int timeout)
          Sets the HTTP connection timeout, in milliseconds.
protected  void setKeyManager(javax.net.ssl.X509KeyManager manager)
          Sets the credential used by this service to create SSL connections and digital signatures.
protected  void setMaxRequests(int max)
          Sets the maximum number of concurrent connections that may be in-process at one time.
protected  void setReceiveBufferSize(int size)
          Sets size of the buffer, in bytes, used when receiving data.
protected  void setSendBufferSize(int size)
          Sets the size of the buffer, in bytes, used when sending data.
protected  void setX509TrustMaterial(org.glite.voms.PKIStore material)
          Sets the store containing the trust material used to validate X509 certificates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINDING_NAME

public static final java.lang.String BINDING_NAME
Key under which a configuration object might be bound.

See Also:
Constant Field Values
Constructor Detail

AbstractConfiguration

protected AbstractConfiguration()
Constructor.

Method Detail

getConnectionTimeout

public int getConnectionTimeout()
Gets the connection socket timeout, in milliseconds.

Returns:
connection socket timeout, in milliseconds

getMaxRequests

public int getMaxRequests()
Gets the maximum number of concurrent connections that may be in-process at one time.

Returns:
maximum number of concurrent connections that may be in-process at one time

getReceiveBufferSize

public int getReceiveBufferSize()
Gets the size of the buffer, in bytes, used when receiving data.

Returns:
Size of the buffer, in bytes, used when receiving data

getSendBufferSize

public int getSendBufferSize()
Gets the size of the buffer, in bytes, used when sending data.

Returns:
size of the buffer, in bytes, used when sending data

getKeyManager

public javax.net.ssl.X509KeyManager getKeyManager()
Gets the credential used by this service to create SSL connections and digital signatures.

Returns:
credential used by this service to create SSL connections and digital signatures

getTrustManager

public javax.net.ssl.X509TrustManager getTrustManager()
Gets the trust manager used to evaluate X509 certificates.

Returns:
trust manager used to evaluate X509 certificates

getTrustMaterialStore

public org.glite.voms.PKIStore getTrustMaterialStore()
Gets the store containing the trust material used to validate X509 certificates.

Returns:
store containing the trust material used to validate X509 certificates

setConnectionTimeout

protected final void setConnectionTimeout(int timeout)
Sets the HTTP connection timeout, in milliseconds.

Parameters:
timeout - HTTP connection timeout, in milliseconds; may not be less than 1

setMaxRequests

protected final void setMaxRequests(int max)
Sets the maximum number of concurrent connections that may be in-process at one time.

Parameters:
max - maximum number of concurrent connections that may be in-process at one time; may not be less than 1

setReceiveBufferSize

protected final void setReceiveBufferSize(int size)
Sets size of the buffer, in bytes, used when receiving data.

Parameters:
size - size of the buffer, in bytes, used when receiving data; may not be less than 1

setSendBufferSize

protected final void setSendBufferSize(int size)
Sets the size of the buffer, in bytes, used when sending data.

Parameters:
size - size of the buffer, in bytes, used when sending data; may not be less than 1

setKeyManager

protected final void setKeyManager(javax.net.ssl.X509KeyManager manager)
Sets the credential used by this service to create SSL connections and digital signatures.

Parameters:
manager - credential used by this service to create SSL connections and digital signatures

setX509TrustMaterial

protected final void setX509TrustMaterial(org.glite.voms.PKIStore material)
Sets the store containing the trust material used to validate X509 certificates.

Parameters:
material - store containing the trust material used to validate X509 certificates


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.