Package com.netscape.cmscore.usrgrp
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 String
Constant for userEmailstatic final String
Constant for userFullNamestatic final String
Constant for userIdstatic final String
Constant for userNamestatic final String
Constant for userPasswordstatic final String
Constant for userScopestatic final String
Constant for userStatestatic final String
Constant for usertypestatic final String
Constant for usertypestatic final String
static final String
static final String
Fields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
List
<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 userint
hashCode()
static void
void
void
setAttributes
(List<netscape.ldap.LDAPAttribute> attributes) void
Set certificate DNvoid
Sets user email address.void
setFullName
(String name) Sets user full name.void
setPassword
(String password) Sets user password.void
Sets user phonenumbervoid
Sets user statevoid
setTpsProfiles
(List<String> tpsProfiles) Set TPS profilesvoid
Sets user LDAP DN.void
void
setUserType
(String userType) Sets user typevoid
setX509Certificates
(X509Certificate[] certs) Sets list of certificates in this userMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
Field Details
-
ATTR_SCOPE
Constant for userScope- See Also:
-
ATTR_NAME
Constant for userName- See Also:
-
ATTR_ID
Constant for userId- See Also:
-
ATTR_FULLNAME
Constant for userFullName- See Also:
-
ATTR_PASSWORD
Constant for userPassword- See Also:
-
ATTR_STATE
Constant for userState- See Also:
-
ATTR_EMAIL
Constant for userEmail- See Also:
-
ATTR_USERTYPE
Constant for usertype- See Also:
-
ATTR_TPS_PROFILES
Constant for usertype- See Also:
-
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
Get TPS profiles -
setTpsProfiles
Set TPS profiles- Parameters:
tpsProfiles
-
-
getName
Deprecated.Retrieves the name of this identity.- Returns:
- user name
-
getUserID
Retrieves user identifier.- Returns:
- user id
-
setUserID
-
getFullName
Retrieves user full name.- Returns:
- user fullname
-
setFullName
Sets user full name.- Parameters:
name
- the given full name
-
getUserDN
Retrieves user LDAP DN- Returns:
- user DN
-
setUserDN
Sets user LDAP DN.- Parameters:
userdn
- the given user DN
-
getUserType
Get user type- Returns:
- user type.
-
setUserType
Sets user type- Parameters:
userType
- the given user type
-
getPassword
Retrieves user password.- Returns:
- user password
-
setPassword
Sets user password.- Parameters:
password
- the given password
-
getEmail
Gets user email address.- Returns:
- email address
-
setEmail
Sets user email address.- Parameters:
email
- the given email address
-
getPhone
Retrieves user phonenumber.- Returns:
- user phonenumber
-
getState
Retrieves user state- Returns:
- user state
-
setPhone
Sets user phonenumber- Parameters:
phone
- user phonenumber
-
setState
Sets user state- Parameters:
state
- the given user state
-
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
Get certificate DN- Returns:
- certificate DN
-
setCertDN
Set certificate DN- Parameters:
dn
- the given DN
-
getAttributes
-
setAttributes
-
set
- Throws:
EBaseException
-
get
- Throws:
EBaseException
-
delete
- Throws:
EBaseException
-
getElements
-
hashCode
public int hashCode() -
equals
-
main
- Throws:
Exception
-