org.apache.wsrp4j.util
Class AuthenticationInfoHelper

java.lang.Object
  extended byorg.apache.wsrp4j.util.AuthenticationInfoHelper

public class AuthenticationInfoHelper
extends java.lang.Object


Field Summary
static java.lang.String WSRP_CERT
          End-User presented a security certificate
static java.lang.String WSRP_NONE
          No authentication was done
static java.lang.String WSRP_PASSWD
          End-User identified themselves using password/username scenario
 
Constructor Summary
AuthenticationInfoHelper()
           
 
Method Summary
static java.lang.String getPortletFromWsrp(java.lang.String wsrpInfo)
          Get the authentification info as defined in the portlet spec from a passed authentification info defined in the WSRP spec..
static java.lang.String getWsrpFromPortlet(java.lang.String jsrAuthInfo)
          Get a string representation of the user authentification as defined in the WSRP spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSRP_NONE

public static final java.lang.String WSRP_NONE
No authentication was done

See Also:
Constant Field Values

WSRP_PASSWD

public static final java.lang.String WSRP_PASSWD
End-User identified themselves using password/username scenario

See Also:
Constant Field Values

WSRP_CERT

public static final java.lang.String WSRP_CERT
End-User presented a security certificate

See Also:
Constant Field Values
Constructor Detail

AuthenticationInfoHelper

public AuthenticationInfoHelper()
Method Detail

getWsrpFromPortlet

public static java.lang.String getWsrpFromPortlet(java.lang.String jsrAuthInfo)
Get a string representation of the user authentification as defined in the WSRP spec. from a passed authentification info defined in the portlet spec. If the passed value could not be matched the same string is returned.

Parameters:
jsrAuthInfo - Authentification info as defined in the portlet spec
Returns:
The authentification info as defined in the WSRP spec. or the argument if no match could be made.

getPortletFromWsrp

public static java.lang.String getPortletFromWsrp(java.lang.String wsrpInfo)
Get the authentification info as defined in the portlet spec from a passed authentification info defined in the WSRP spec.. If wsrp:none is passed null is returned. In case the passed info could not be matched the same string is returned.

Parameters:
wsrpInfo -
Returns: