Class MasterProvider
java.lang.Object
ecmwf.common.ecaccess.NativeAuthenticationProvider
ecmwf.ecpds.master.MasterProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal class
The Class UserDataSpace. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Close all incoming connections.static boolean
Close incoming connection.static String[]
Gets the incoming connection ids.getRoot()
Gets the root.getUserSession
(String host, String user, ECauthToken token, String profile, Closeable closeable) Gets the user session.getUserSession
(String host, String ticket, String profile, Closeable closeable) Called if we have a ticket.Called if we have a password.boolean
isPassword
(String user, String password) Allow differentiating tickets and passwords.boolean
isRegistredUser
(String user) Checks if it is a registred user.boolean
If tickets are supported then the isPassword method will be called to differentiate the passwords and the tickets.Methods inherited from class ecmwf.common.ecaccess.NativeAuthenticationProvider
connected, getECUser, getInstance, getNewCertificate, getNewToken, getNewToken, newActivity, newEvent, setProvider
-
Constructor Details
-
MasterProvider
public MasterProvider()
-
-
Method Details
-
closeAllIncomingConnections
public static void closeAllIncomingConnections()Close all incoming connections. -
closeIncomingConnection
Close incoming connection.- Parameters:
id
- the id- Returns:
- true, if successful
-
getIncomingConnectionIds
Gets the incoming connection ids.- Returns:
- the incoming connection ids
-
isRegistredUser
Checks if it is a registred user. Checks if is registred user.- Specified by:
isRegistredUser
in classNativeAuthenticationProvider
- Parameters:
user
- the user- Returns:
- true, if is registred user
- Throws:
Exception
- the exception
-
getUserSession
public UserSession getUserSession(String host, String user, String password, String profile, Closeable closeable) throws Exception Called if we have a password. Gets the user session.- Specified by:
getUserSession
in classNativeAuthenticationProvider
- Parameters:
host
- the hostuser
- the userpassword
- the passwordprofile
- the profilecloseable
- the closeable- Returns:
- the user session
- Throws:
Exception
- the exception
-
getUserSession
public UserSession getUserSession(String host, String user, ECauthToken token, String profile, Closeable closeable) throws Exception Gets the user session. Gets the user session.- Specified by:
getUserSession
in classNativeAuthenticationProvider
- Parameters:
host
- the hostuser
- the usertoken
- the tokenprofile
- the profilecloseable
- the closeable- Returns:
- the user session
- Throws:
Exception
- the exception
-
getUserSession
public UserSession getUserSession(String host, String ticket, String profile, Closeable closeable) throws Exception Called if we have a ticket. Gets the user session.- Specified by:
getUserSession
in classNativeAuthenticationProvider
- Parameters:
host
- the hostticket
- the ticketprofile
- the profilecloseable
- the closeable- Returns:
- the user session
- Throws:
Exception
- the exception
-
supportTickets
public boolean supportTickets()If tickets are supported then the isPassword method will be called to differentiate the passwords and the tickets. Support tickets.- Overrides:
supportTickets
in classNativeAuthenticationProvider
- Returns:
- true, if it does support tickets.
-
isPassword
Allow differentiating tickets and passwords. Depending of the result the session will be created with one getUserSession or the other. Checks if is password.- Overrides:
isPassword
in classNativeAuthenticationProvider
- Parameters:
user
- the userpassword
- the password or ticket- Returns:
- true, if it is a password
-
getRoot
Gets the root. Gets the root.- Specified by:
getRoot
in classNativeAuthenticationProvider
- Returns:
- the root
- Throws:
RemoteException
-