Package edu.uiuc.ncsa.security.servlet
Class TrivialUsernameTransformer
- java.lang.Object
-
- edu.uiuc.ncsa.security.servlet.TrivialUsernameTransformer
-
- All Implemented Interfaces:
UsernameTransformer
public class TrivialUsernameTransformer extends Object implements UsernameTransformer
This transformation is trivial, i.e. it returns a null myproxy username and the returned username is simply the passed-in. This is the default on the server unless you specifically override this class/implement your ownUsernameTransformer
class and set it in the service environment.Created by Jeff Gaynor
on 1/9/14 at 10:17 AM
-
-
Constructor Summary
Constructors Constructor Description TrivialUsernameTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createMyProxyUsername(javax.servlet.http.HttpServletRequest request)
This will take the request.String
createReturnedUsername(javax.servlet.http.HttpServletRequest request, String myproxyUsername)
This will take the request and current myproxy username, The result is returned to the client as the "username" parameter.
-
-
-
Method Detail
-
createMyProxyUsername
public String createMyProxyUsername(javax.servlet.http.HttpServletRequest request)
Description copied from interface:UsernameTransformer
This will take the request. The result returned will be a replacement for the username that is passed to MyProxy for authentication.- Specified by:
createMyProxyUsername
in interfaceUsernameTransformer
- Returns:
-
createReturnedUsername
public String createReturnedUsername(javax.servlet.http.HttpServletRequest request, String myproxyUsername)
Description copied from interface:UsernameTransformer
This will take the request and current myproxy username, The result is returned to the client as the "username" parameter.- Specified by:
createReturnedUsername
in interfaceUsernameTransformer
- Returns:
-
-