Class User

  • All Implemented Interfaces:
    IAttrSet, IUser, IUserConstants, java.io.Serializable

    public class User
    extends java.lang.Object
    implements IUser
    A class represents a user.
    Version:
    $Revision$, $Date$
    Author:
    cfu
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      User​(IUsrGrp base, java.lang.String userid)
      Constructs a user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String name)
      Deletes an attribute value from this AttrSet.
      java.lang.Object get​(java.lang.String name)
      Gets an attribute value.
      java.lang.String getCertDN()
      Get certificate DN
      java.util.Enumeration<java.lang.String> getElements()
      Returns an enumeration of the names of the attributes existing within this AttrSet.
      java.lang.String getEmail()
      Gets user email address.
      java.lang.String getFullName()
      Retrieves user full name.
      java.lang.String getName()
      Retrieves the name of this identity.
      java.lang.String getPassword()
      Retrieves user password.
      java.lang.String getPhone()
      Retrieves user phonenumber.
      java.lang.String getState()
      Retrieves user state
      java.util.List<java.lang.String> getTpsProfiles()
      Get TPS profiles
      java.lang.String getUserDN()
      Retrieves user ldap dn
      java.lang.String getUserID()
      Retrieves user identifier.
      java.lang.String getUserType()
      Get user type
      java.security.cert.X509Certificate[] getX509Certificates()
      Gets list of certificates from this user
      void set​(java.lang.String name, java.lang.Object object)
      Sets an attribute value within this AttrSet.
      void setCertDN​(java.lang.String dn)
      Set certificate DN
      void setEmail​(java.lang.String email)
      Sets user email address.
      void setFullName​(java.lang.String name)
      Sets user full name.
      void setPassword​(java.lang.String password)
      Sets user password.
      void setPhone​(java.lang.String phone)
      Sets user phonenumber
      void setState​(java.lang.String state)
      Sets user state
      void setTpsProfiles​(java.util.List<java.lang.String> tpsProfiles)
      Set TPS profiles
      void setUserDN​(java.lang.String userdn)
      Sets user ldap DN.
      void setUserType​(java.lang.String userType)
      Sets user type
      void setX509Certificates​(java.security.cert.X509Certificate[] certs)
      Sets list of certificates in this user
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ATTR_X509_CERTIFICATES

        public static final java.lang.String ATTR_X509_CERTIFICATES
        See Also:
        Constant Field Values
    • Constructor Detail

      • User

        public User​(IUsrGrp base,
                    java.lang.String userid)
        Constructs a user.
    • Method Detail

      • getTpsProfiles

        public java.util.List<java.lang.String> getTpsProfiles()
        Description copied from interface: IUser
        Get TPS profiles
        Specified by:
        getTpsProfiles in interface IUser
      • setTpsProfiles

        public void setTpsProfiles​(java.util.List<java.lang.String> tpsProfiles)
        Description copied from interface: IUser
        Set TPS profiles
        Specified by:
        setTpsProfiles in interface IUser
      • getName

        public java.lang.String getName()
        Retrieves the name of this identity.
        Specified by:
        getName in interface IUser
        Returns:
        user name
      • getUserID

        public java.lang.String getUserID()
        Retrieves user identifier.
        Specified by:
        getUserID in interface IUser
        Returns:
        user id
      • getFullName

        public java.lang.String getFullName()
        Retrieves user full name.
        Specified by:
        getFullName in interface IUser
        Returns:
        user fullname
      • setFullName

        public void setFullName​(java.lang.String name)
        Description copied from interface: IUser
        Sets user full name.
        Specified by:
        setFullName in interface IUser
        Parameters:
        name - the given full name
      • getUserDN

        public java.lang.String getUserDN()
        Retrieves user ldap dn
        Specified by:
        getUserDN in interface IUser
        Returns:
        user DN
      • setUserDN

        public void setUserDN​(java.lang.String userdn)
        Description copied from interface: IUser
        Sets user ldap DN.
        Specified by:
        setUserDN in interface IUser
        Parameters:
        userdn - the given user DN
      • getUserType

        public java.lang.String getUserType()
        Description copied from interface: IUser
        Get user type
        Specified by:
        getUserType in interface IUser
        Returns:
        user type.
      • setUserType

        public void setUserType​(java.lang.String userType)
        Description copied from interface: IUser
        Sets user type
        Specified by:
        setUserType in interface IUser
        Parameters:
        userType - the given user type
      • getPassword

        public java.lang.String getPassword()
        Retrieves user password.
        Specified by:
        getPassword in interface IUser
        Returns:
        user password
      • setPassword

        public void setPassword​(java.lang.String password)
        Description copied from interface: IUser
        Sets user password.
        Specified by:
        setPassword in interface IUser
        Parameters:
        password - the given password
      • getEmail

        public java.lang.String getEmail()
        Description copied from interface: IUser
        Gets user email address.
        Specified by:
        getEmail in interface IUser
        Returns:
        email address
      • setEmail

        public void setEmail​(java.lang.String email)
        Description copied from interface: IUser
        Sets user email address.
        Specified by:
        setEmail in interface IUser
        Parameters:
        email - the given email address
      • getPhone

        public java.lang.String getPhone()
        Description copied from interface: IUser
        Retrieves user phonenumber.
        Specified by:
        getPhone in interface IUser
        Returns:
        user phonenumber
      • getState

        public java.lang.String getState()
        Description copied from interface: IUser
        Retrieves user state
        Specified by:
        getState in interface IUser
        Returns:
        user state
      • setPhone

        public void setPhone​(java.lang.String phone)
        Description copied from interface: IUser
        Sets user phonenumber
        Specified by:
        setPhone in interface IUser
        Parameters:
        phone - user phonenumber
      • setState

        public void setState​(java.lang.String state)
        Description copied from interface: IUser
        Sets user state
        Specified by:
        setState in interface IUser
        Parameters:
        state - the given user state
      • getX509Certificates

        public java.security.cert.X509Certificate[] getX509Certificates()
        Description copied from interface: IUser
        Gets list of certificates from this user
        Specified by:
        getX509Certificates in interface IUser
        Returns:
        list of certificates
      • setX509Certificates

        public void setX509Certificates​(java.security.cert.X509Certificate[] certs)
        Description copied from interface: IUser
        Sets list of certificates in this user
        Specified by:
        setX509Certificates in interface IUser
        Parameters:
        certs - list of certificates
      • getCertDN

        public java.lang.String getCertDN()
        Description copied from interface: IUser
        Get certificate DN
        Specified by:
        getCertDN in interface IUser
        Returns:
        certificate DN
      • setCertDN

        public void setCertDN​(java.lang.String dn)
        Description copied from interface: IUser
        Set certificate DN
        Specified by:
        setCertDN in interface IUser
        Parameters:
        dn - the given DN
      • set

        public void set​(java.lang.String name,
                        java.lang.Object object)
                 throws EBaseException
        Description copied from interface: IAttrSet
        Sets an attribute value within this AttrSet.
        Specified by:
        set in interface IAttrSet
        Parameters:
        name - the name of the attribute
        object - the attribute object.
        Throws:
        EBaseException - on attribute handling errors.
      • get

        public java.lang.Object get​(java.lang.String name)
                             throws EBaseException
        Description copied from interface: IAttrSet
        Gets an attribute value.
        Specified by:
        get in interface IAttrSet
        Parameters:
        name - the name of the attribute to return.
        Throws:
        EBaseException - on attribute handling errors.
      • delete

        public void delete​(java.lang.String name)
                    throws EBaseException
        Description copied from interface: IAttrSet
        Deletes an attribute value from this AttrSet.
        Specified by:
        delete in interface IAttrSet
        Parameters:
        name - the name of the attribute to delete.
        Throws:
        EBaseException - on attribute handling errors.
      • getElements

        public java.util.Enumeration<java.lang.String> getElements()
        Description copied from interface: IAttrSet
        Returns an enumeration of the names of the attributes existing within this AttrSet.
        Specified by:
        getElements in interface IAttrSet
        Returns:
        an enumeration of the attribute names.