def do_pdp_descriptor(conf, cert):
 pdp = md.PDPDescriptor()
 pdp.protocol_support_enumeration = samlp.NAMESPACE
 endps = conf.getattr('endpoints', 'pdp')
 if endps:
  for (endpoint, instlist) in do_endpoints(endps, ENDPOINTS['pdp']).items():
   setattr(pdp, endpoint, instlist)
 _do_nameid_format(pdp, conf, 'pdp')
 if cert:
  pdp.key_descriptor = do_key_descriptor(cert)
 return pdp

def do_pdp_descriptor ( conf , cert ) : pdp = md . PDPDescriptor ( ) pdp . protocol_support_enumeration = samlp . NAMESPACE endps = conf . getattr ( 'endpoints' , 'pdp' ) if endps : for ( endpoint , instlist ) in do_endpoints ( endps , ENDPOINTS [ 'pdp' ] ) . items ( ) : setattr ( pdp , endpoint , instlist ) _do_nameid_format ( pdp , conf , 'pdp' ) if cert : pdp . key_descriptor = do_key_descriptor ( cert ) return pdp
create a policy decision point descriptor .