gd_proxyquery

Queries whether a valid proxy certificate exists.

 

Syntax

isvalid = gd_proxyquery(proxyattrib=None,minvalue=-1)

 

Description

This command determines whether a valid proxy certificate exists for user's certificate. The strength or time remaining for the proxy certificate may also be queried. The location of the user's proxy certificate is specified by the cog.properties file.  

 

isvalid = gd_proxyquery(proxyattrib,minvalue) returns 1 when the proxy certificate is valid, or meets the requirements of remaining lifetime or cryptographic strength specified by proxyattrib/minvalue, otherwise 0. If proxyattrib = 'time' the time remaining for the proxy certificate is queried against minvalue hours. If proxyattrib = 'strength' the cryptographic strength of the proxy certificate is queried against minvalue bits.

 

   

Example

The following example returns isvalid = 0 for a proxy certificate of strength 512.

 

from gdcompute import *

isvalid = gd_proxyquery('strength',1024)

 

0

 

See also

gd_proxyinfo, gd_certinfo, gd_createproxy, gd_destroyproxy



gd_proxyinfo

contents

gd_putfile

Copyright © 2005, The Geodise Project, University of Southampton