Class 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 own UsernameTransformer class and set it in the service environment.

    Created by Jeff Gaynor
    on 1/9/14 at 10:17 AM

    • Constructor Detail

      • TrivialUsernameTransformer

        public TrivialUsernameTransformer()
    • 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 interface UsernameTransformer
        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 interface UsernameTransformer
        Returns: