Package com.netscape.cmscore.usrgrp
Class User
java.lang.Object
com.netscape.cmscore.usrgrp.User
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanstatic UserGet 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 voidvoidvoidSet 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 usertoJSON()
-
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:
-
-
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
-
set
- Throws:
EBaseException
-
get
- Throws:
EBaseException
-
delete
- Throws:
EBaseException
-
getElements
-
toJSON
- Throws:
Exception
-
fromJSON
- Throws:
Exception
-
hashCode
public int hashCode() -
equals
-
main
- Throws:
Exception
-