Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.lotus.cs
Class CSCredentials

java.lang.Object
  extended bycom.lotus.cs.CSCredentials
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class CSCredentials
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

CSCredentials is a class used to extract and hold Authentication information.

See Also:
Serialized Form

Method Summary
static java.lang.String escapeForJS(java.lang.String s)
           
static java.lang.String getCommonName(java.lang.String name)
           
static java.lang.String getSTUserAttrName(CSCredentials cred, javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getUserLoginName()
          Returns the login name for the currently logged in user.
 java.lang.String getUserName()
          Returns a string representing the user name in Distinguished Name format.
static boolean isLDAPName(java.lang.String name)
           
static boolean isNotesName(java.lang.String name)
          Look for the last '=', from there look backwards to find either a ',' or a '/'.
static java.lang.String LDAP2NotesName(java.lang.String username)
           
static java.lang.String Notes2LDAPName(java.lang.String username)
           
 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserName

public java.lang.String getUserName()
Returns a string representing the user name in Distinguished Name format.

Returns:
a string representing the user name in DN format

getUserLoginName

public java.lang.String getUserLoginName()
Returns the login name for the currently logged in user.

Returns:
a string representing the user name

getSTUserAttrName

public static java.lang.String getSTUserAttrName(CSCredentials cred,
                                                 javax.servlet.http.HttpServletRequest req)

LDAP2NotesName

public static java.lang.String LDAP2NotesName(java.lang.String username)

Notes2LDAPName

public static java.lang.String Notes2LDAPName(java.lang.String username)

isNotesName

public static boolean isNotesName(java.lang.String name)
Look for the last '=', from there look backwards to find either a ',' or a '/'. Which ever one you find first tells you if you are domino or ldap.


isLDAPName

public static boolean isLDAPName(java.lang.String name)

escapeForJS

public static java.lang.String escapeForJS(java.lang.String s)

getCommonName

public static java.lang.String getCommonName(java.lang.String name)

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.