Class 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 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 server
        port - The port for the server
        loas - A map consisting of the level of assurance names and port numbers.
      • 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

      • 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()