Package edu.uiuc.ncsa.myproxy
Class MPConnectionProvider<T extends MyProxyConnectable>
- java.lang.Object
-
- edu.uiuc.ncsa.myproxy.MPConnectionProvider<T>
-
- All Implemented Interfaces:
javax.inject.Provider<T>
public class MPConnectionProvider<T extends MyProxyConnectable> extends Object implements javax.inject.Provider<T>
A class that performs certain operations on sets ofMyProxyServiceFacade
s and returns an openMyProxyConnectable
. This is designed to look at a list of facades and hand back the first that succeeds or, if all configured MyProxy servers fail, this will fail.Created by Jeff Gaynor
on 3/16/15 at 2:49 PM
-
-
Constructor Summary
Constructors Constructor Description MPConnectionProvider(MyProxyServiceFacade facade)
MPConnectionProvider(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, MyProxyServiceFacade facade)
Convenience constructor for a single facadeMPConnectionProvider(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, List<MyProxyServiceFacade> facades)
MPConnectionProvider(List<MyProxyServiceFacade> facades)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
findConnection(edu.uiuc.ncsa.security.core.Identifier identifier, String userName, String password, String loa, long lifetime)
T
findConnection(String userName, String password, long lifetime)
Convenience method.T
get()
protected void
info(String x)
protected void
warn(String x)
-
-
-
Constructor Detail
-
MPConnectionProvider
public MPConnectionProvider(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, List<MyProxyServiceFacade> facades)
-
MPConnectionProvider
public MPConnectionProvider(List<MyProxyServiceFacade> facades)
-
MPConnectionProvider
public MPConnectionProvider(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, MyProxyServiceFacade facade)
Convenience constructor for a single facade- Parameters:
logger
-facade
-
-
MPConnectionProvider
public MPConnectionProvider(MyProxyServiceFacade facade)
-
-
Method Detail
-
info
protected void info(String x)
-
warn
protected void warn(String x)
-
findConnection
public T findConnection(String userName, String password, long lifetime) throws GeneralSecurityException
Convenience method. A random identifier is assigned and the loa is assumed to be null.- Parameters:
userName
-password
-lifetime
-- Returns:
- Throws:
GeneralSecurityException
-
get
public T get()
- Specified by:
get
in interfacejavax.inject.Provider<T extends MyProxyConnectable>
-
findConnection
public T findConnection(edu.uiuc.ncsa.security.core.Identifier identifier, String userName, String password, String loa, long lifetime) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-