Class User
java.lang.Object
com.netscape.cmscore.usrgrp.User
- All Implemented Interfaces:
JSONSerializer
A class represents a user.
- Version:
- $Revision$, $Date$
- Author:
- cfu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for userEmailstatic final StringConstant for userFullNamestatic final StringConstant for userIdstatic final StringConstant for userNamestatic final StringConstant for userPasswordstatic final StringConstant for userScopestatic final StringConstant for userStatestatic final StringConstant for usertypestatic final StringConstant for usertypestatic final Stringstatic final Stringstatic final StringFields inherited from interface JSONSerializer
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanList<netscape.ldap.LDAPAttribute> Get certificate DNgetEmail()Gets user email address.Retrieves user full name.getName()Deprecated.Retrieves user password.getPhone()Retrieves user phonenumber.getState()Retrieves user stateGet TPS profilesRetrieves user LDAP DNRetrieves user identifier.Get user typeGets list of certificates from this userinthashCode()static voidvoidvoidsetAttributes(List<netscape.ldap.LDAPAttribute> attributes) voidSet certificate DNvoidSets user email address.voidsetFullName(String name) Sets user full name.voidsetPassword(String password) Sets user password.voidSets user phonenumbervoidSets user statevoidsetTpsProfiles(List<String> tpsProfiles) Set TPS profilesvoidSets user LDAP DN.voidvoidsetUserType(String userType) Sets user typevoidsetX509Certificates(X509Certificate[] certs) Sets list of certificates in this userMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JSONSerializer
toJSON
-
Field Details
-
ATTR_SCOPE
-
ATTR_NAME
-
ATTR_ID
-
ATTR_FULLNAME
-
ATTR_PASSWORD
-
ATTR_STATE
-
ATTR_EMAIL
-
ATTR_USERTYPE
-
ATTR_TPS_PROFILES
-
ATTR_X509_CERTIFICATES
- See Also:
-
ATTRIBUTES
- See Also:
-
CMS_BASE_INVALID_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
User
public User()Constructs a user. -
User
Deprecated.
-
-
Method Details
-
getTpsProfiles
-
setTpsProfiles
-
getName
Deprecated.Retrieves the name of this identity.- Returns:
- user name
-
getUserID
-
setUserID
-
getFullName
-
setFullName
-
getUserDN
-
setUserDN
-
getUserType
-
setUserType
-
getPassword
-
setPassword
Sets user password.- Parameters:
password- the given password
-
getEmail
-
setEmail
Sets user email address.- Parameters:
email- the given email address
-
getPhone
-
getState
-
setPhone
-
setState
-
getX509Certificates
Gets list of certificates from this user- Returns:
- list of certificates
-
setX509Certificates
Sets list of certificates in this user- Parameters:
certs- list of certificates
-
getCertDN
-
setCertDN
-
getAttributes
-
setAttributes
-
set
- Throws:
EBaseException
-
get
- Throws:
EBaseException
-
delete
- Throws:
EBaseException
-
getElements
-
hashCode
-
equals
-
main
-