Exemplo n.º 1
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
Exemplo n.º 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
Exemplo n.º 3
0
 def timeleft(self, units="hh:mm:ss", force_check=False):
     return ICredential.timeleft(self, units, force_check)
Exemplo n.º 4
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)
Exemplo n.º 5
0
 def destroy(self, allowed_exit=[0, 1]):
     self.chooseCommandSet()
     self.buildOpts(self.command.destroy)
     return ICredential.destroy(self, allowed_exit)
Exemplo n.º 6
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
Exemplo n.º 7
0
 def timeleft(self, units="hh:mm:ss", force_check=False):
     return ICredential.timeleft(self, units, force_check)
Exemplo n.º 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)
Exemplo n.º 9
0
 def destroy(self, allowed_exit=[0, 1]):
     self.chooseCommandSet()
     self.buildOpts(self.command.destroy)
     return ICredential.destroy(self, allowed_exit)
Exemplo n.º 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