(file) Return to AuthenticationInfo.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/AuthenticationInfo.h between version 1.31 and 1.37

version 1.31, 2006/11/10 18:14:57 version 1.37, 2007/09/03 11:27:02
Line 63 
Line 63 
 { {
 public: public:
  
     /** Constructor - Creates an uninitiated new AuthenticationInfo      /** Constructor - Creates an uninitialized new AuthenticationInfo
         object reprenting a AuthenticationInfo class. The class object          object representing an AuthenticationInfo class. The class object
         created by this constructor can only be used in an operation such as the         created by this constructor can only be used in an operation such as the
         copy constructor.  It cannot be used to do method calls like          copy constructor.  It cannot be used to do method calls such as
         setAuthStatus, getAuthType, etc. since it is unitiated.          getAuthType, since it is uninitialized.
  
         Use one of the other constructors to create an initiated new         Use one of the other constructors to create an initiated new
         AuthenticationInfo class object. Throws an exception         AuthenticationInfo class object. Throws an exception
Line 137 
Line 137 
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
     }     }
  
     /** Get the authentication status of the request      /** Sets the connection authentication status of the request to the
         @return the current authentication status          status specified.
     */  
     AuthenticationInfoRep::AuthStatus getAuthStatus() const  
     {  
         _checkRep();  
         return _rep->getAuthStatus();  
     }  
   
     /** Sets the authentication status of the request to the status  
         specified.  
         @param status - the new authentication status         @param status - the new authentication status
     */     */
     void   setAuthStatus(AuthenticationInfoRep::AuthStatus status)      void   setConnectionAuthenticated(Boolean status)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setAuthStatus(status);          _rep->setConnectionAuthenticated(status);
     }     }
  
     /** Get the previously authenticated user name     /** Get the previously authenticated user name
Line 161 
Line 152 
     */     */
     String getAuthenticatedUser() const     String getAuthenticatedUser() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getAuthenticatedUser();         return _rep->getAuthenticatedUser();
     }     }
  
Line 170 
Line 161 
     */     */
     void   setAuthenticatedUser(const String& userName)     void   setAuthenticatedUser(const String& userName)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setAuthenticatedUser(userName);         _rep->setAuthenticatedUser(userName);
     }     }
  
   #ifdef PEGASUS_OS_ZOS
   
       /** The connection user is for z/OS only.
           On z/OS Unix Local Domain Sockets and sockets
           protected by AT-TLS are able to get the user ID of
           the connected user.
           This information is needed for later authentication
           steps.
        */
   
       /** Get the connection user name
           @return the connection user name
       */
       String getConnectionUser() const
       {
           CheckRep(_rep);
           return _rep->getConnectionUser();
       }
   
       /** Sets the connection user name
           @param userName - string containing the user name
                              provided by the connection
       */
       void   setConnectionUser(const String& userName)
       {
           CheckRep(_rep);
           _rep->setConnectionUser(userName);
       }
   
   #endif
   
     /** Get the previously authenticated password     /** Get the previously authenticated password
         @return the authenticated password         @return the authenticated password
     */     */
     String getAuthenticatedPassword() const     String getAuthenticatedPassword() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getAuthenticatedPassword();         return _rep->getAuthenticatedPassword();
     }     }
  
Line 188 
Line 210 
     */     */
     void   setAuthenticatedPassword(const String& password)     void   setAuthenticatedPassword(const String& password)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setAuthenticatedPassword(password);         _rep->setAuthenticatedPassword(password);
     }     }
  
     /** Get the authentication challenge that was sent to the client      /** Get the local authentication file path that was sent to client
         @return string containing the authentication challenge          @return string containing the authentication file path
     */     */
     String getAuthChallenge() const      String getLocalAuthFilePath() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getAuthChallenge();          return _rep->getLocalAuthFilePath();
     }     }
  
     /** Sets the authentication challenge to the specified challenge      /** Set the local authentication file path to the specified file path
         @param challenge - string containing the authentication challenge          @param filePath String containing the authentication file path
     */     */
     void   setAuthChallenge(const String& challenge)      void setLocalAuthFilePath(const String& filePath)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setAuthChallenge(challenge);          _rep->setLocalAuthFilePath(filePath);
     }     }
  
     /** Get the authentication secret that was sent to client      /** Get the local authentication secret that was sent to client
         @return string containing the authentication secret         @return string containing the authentication secret
     */     */
     String getAuthSecret() const      String getLocalAuthSecret() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getAuthSecret();          return _rep->getLocalAuthSecret();
     }     }
  
     /** Set the authentication secret to the specified secret      /** Set the local authentication secret to the specified secret
         @param secret - string containing the authentication secret         @param secret - string containing the authentication secret
     */     */
     void   setAuthSecret(const String& secret)      void   setLocalAuthSecret(const String& secret)
     {  
         _checkRep();  
         _rep->setAuthSecret(secret);  
     }  
   
     /** Returns the connection type of the previous authenticated request  
         @return true if the connection is privileged, false otherwise  
     */  
     Boolean isPrivileged() const  
     {  
         _checkRep();  
         return _rep->isPrivileged();  
     }  
   
     /** Set the privileged flag to the specified value  
         @param privileged - boolean flag indicating the connection type  
     */  
     void   setPrivileged(Boolean privileged)  
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setPrivileged(privileged);          _rep->setLocalAuthSecret(secret);
     }     }
  
     /** Is the request authenticated     /** Is the request authenticated
Line 251 
Line 255 
     /** Returns the authentication status of the current connection.     /** Returns the authentication status of the current connection.
         @return true if the connection was authenticated, false otherwise         @return true if the connection was authenticated, false otherwise
     */     */
     Boolean isAuthenticated() const      Boolean isConnectionAuthenticated() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->isAuthenticated();          return _rep->isConnectionAuthenticated();
     }     }
  
     /** Set the authentication type to the specified type     /** Set the authentication type to the specified type
Line 262 
Line 266 
     */     */
     void   setAuthType(const String& authType)     void   setAuthType(const String& authType)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setAuthType(authType);         _rep->setAuthType(authType);
     }     }
  
Line 271 
Line 275 
     */     */
     String getAuthType() const     String getAuthType() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getAuthType();         return _rep->getAuthType();
     }     }
  
Line 281 
Line 285 
     */     */
     void setIpAddress(const String& ipAddress)     void setIpAddress(const String& ipAddress)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setIpAddress(ipAddress);         _rep->setIpAddress(ipAddress);
     }     }
  
Line 295 
Line 299 
     */     */
     String getIpAddress() const     String getIpAddress() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getIpAddress();         return _rep->getIpAddress();
     }     }
  
Line 306 
Line 310 
     */     */
     CIMKerberosSecurityAssociation* getSecurityAssociation() const     CIMKerberosSecurityAssociation* getSecurityAssociation() const
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getSecurityAssociation();         return _rep->getSecurityAssociation();
     }     }
  
Line 316 
Line 320 
     */     */
     void setSecurityAssociation()     void setSecurityAssociation()
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setSecurityAssociation();         _rep->setSecurityAssociation();
     }     }
 #endif #endif
  
     Array<SSLCertificateInfo*> getClientCertificateChain()     Array<SSLCertificateInfo*> getClientCertificateChain()
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getClientCertificateChain();         return _rep->getClientCertificateChain();
     }     }
  
     void setClientCertificateChain(Array<SSLCertificateInfo*> clientCertificate)     void setClientCertificateChain(Array<SSLCertificateInfo*> clientCertificate)
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setClientCertificateChain(clientCertificate);         _rep->setClientCertificateChain(clientCertificate);
     }     }
  
Line 338 
Line 342 
     */     */
     void setRemotePrivilegedUserAccessChecked()     void setRemotePrivilegedUserAccessChecked()
     {     {
         _checkRep();          CheckRep(_rep);
         _rep->setRemotePrivilegedUserAccessChecked();         _rep->setRemotePrivilegedUserAccessChecked();
     }     }
  
Line 348 
Line 352 
     */     */
     Boolean getRemotePrivilegedUserAccessChecked()     Boolean getRemotePrivilegedUserAccessChecked()
     {     {
         _checkRep();          CheckRep(_rep);
         return _rep->getRemotePrivilegedUserAccessChecked();         return _rep->getRemotePrivilegedUserAccessChecked();
     }     }
  


Legend:
Removed from v.1.31  
changed lines
  Added in v.1.37

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2