예제 #1
0
파일: GridProxy.py 프로젝트: Erni1619/ganga
    def isValid(self, validity="", log=False, force_check=False):

        # Do parent check
        if not ICredential.isValid(self, validity, log, force_check):
            return False

        # check vo names
        if self.voname() != self.voms:
            if log:
                logger.warning("Grid Proxy not valid. Certificate VO '%s' does not match requested '%s'"
                               % (self.voname(), self.voms))
            return False

        return True
예제 #2
0
    def isValid(self, validity="", log=False, force_check=False):

        # Do parent check
        if not ICredential.isValid(self, validity, log, force_check):
            return False

        # check vo names
        if self.voname() != self.voms:
            if log:
                logger.warning(
                    "Grid Proxy not valid. Certificate VO '%s' does not match requested '%s'"
                    % (self.voname(), self.voms))
            return False

        return True
예제 #3
0
파일: GridProxy.py 프로젝트: Erni1619/ganga
 def timeleft(self, units="hh:mm:ss", force_check=False):
     return ICredential.timeleft(self, units, force_check)
예제 #4
0
파일: GridProxy.py 프로젝트: Erni1619/ganga
 def renew(self, validity="", maxTry=0, minValidity="", check=True):
     self.chooseCommandSet()
     if self.voms:
         if not self.voname():
             check = False
     return ICredential.renew(self, validity, maxTry, minValidity, check)
예제 #5
0
파일: GridProxy.py 프로젝트: Erni1619/ganga
 def destroy(self, allowed_exit=[0, 1]):
     self.chooseCommandSet()
     self.buildOpts(self.command.destroy)
     return ICredential.destroy(self, allowed_exit)
예제 #6
0
파일: GridProxy.py 프로젝트: Erni1619/ganga
 def create(self, validity="", maxTry=0, minValidity="", check=False):
     self.chooseCommandSet()
     self.buildOpts(self.command.init)
     status = ICredential.create(self, validity, maxTry, minValidity, check)
     return status
예제 #7
0
 def timeleft(self, units="hh:mm:ss", force_check=False):
     return ICredential.timeleft(self, units, force_check)
예제 #8
0
 def renew(self, validity="", maxTry=0, minValidity="", check=True):
     self.chooseCommandSet()
     if self.voms:
         if not self.voname():
             check = False
     return ICredential.renew(self, validity, maxTry, minValidity, check)
예제 #9
0
 def destroy(self, allowed_exit=[0, 1]):
     self.chooseCommandSet()
     self.buildOpts(self.command.destroy)
     return ICredential.destroy(self, allowed_exit)
예제 #10
0
 def create(self, validity="", maxTry=0, minValidity="", check=False):
     self.chooseCommandSet()
     self.buildOpts(self.command.init)
     status = ICredential.create(self, validity, maxTry, minValidity, check)
     return status