Package edu.uiuc.ncsa.myproxy
Class ServiceFacadeConfiguration
- java.lang.Object
-
- edu.uiuc.ncsa.myproxy.ServiceFacadeConfiguration
-
public class ServiceFacadeConfiguration extends Object
Properties for the MyProxyService facade. This supports a configurable hostname and various levels of assurance.Created by Jeff Gaynor
on May 14, 2010 at 10:16:44 AM
-
-
Constructor Summary
Constructors Constructor Description ServiceFacadeConfiguration(boolean useProxy)ServiceFacadeConfiguration(String hostname, int port, long socketTimeout, Map<String,Integer> loas)Constructor for the case that no serverDN is specified. in that case, the trust manager will simply verify the server DN found from the server cert.ServiceFacadeConfiguration(String hostname, int port, long socketTimeout, Map<String,Integer> loas, String serverDN)Sets the name of the server and default port.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHostname()Get the fully qualified hostname for the MyProxy serverintgetPort()Get the port for the MyProxy Server.StringgetServerDN()longgetSocketTimeout()booleanisUseProxy()voidsetUseProxy(boolean useProxy)
-
-
-
Constructor Detail
-
ServiceFacadeConfiguration
public ServiceFacadeConfiguration(String hostname, int port, long socketTimeout, Map<String,Integer> loas, String serverDN)
Sets the name of the server and default port. The levels of assurance as passed as a map of strings and port numbers. A call for a specific level of assurance will simply look up the port number and use that. This allows for changing the LOA port numbers in the configuration rather than having to worry about coding them.- Parameters:
hostname- Fully qualified name of the MyProxy serverport- The port for the serverloas- A map consisting of the level of assurance names and port numbers.
-
ServiceFacadeConfiguration
public ServiceFacadeConfiguration(boolean useProxy)
-
ServiceFacadeConfiguration
public ServiceFacadeConfiguration(String hostname, int port, long socketTimeout, Map<String,Integer> loas)
Constructor for the case that no serverDN is specified. in that case, the trust manager will simply verify the server DN found from the server cert.- Parameters:
hostname-port-socketTimeout-loas-
-
-
Method Detail
-
isUseProxy
public boolean isUseProxy()
-
setUseProxy
public void setUseProxy(boolean useProxy)
-
getServerDN
public String getServerDN()
-
getHostname
public String getHostname()
Get the fully qualified hostname for the MyProxy server- Returns:
-
getPort
public int getPort()
Get the port for the MyProxy Server.- Returns:
-
getSocketTimeout
public long getSocketTimeout()
-
-