AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
getProviders ([Regexp name[, Regexp value]]) yoix.secure
getProviders (String provider[, Regexp name[, Regexp value]])  
getProviders (int slot[, Regexp name[, Regexp value]])  
 
Returns provider infomation. When the first argument is the name of a provider or a slot number within the ordered list of providers maintained by the system, then only information specific to the identified provider is returned. Otherwise information for all providers is returned. With no arguments, a Dictionary with entries for each individual provider is returned. Provider information is itself returned in a Dictionary of String values forming the same name / value pairs provided by Java. If Regexp arguments are supplied, the first is used to filter dictionary field names and the second, if given, is used to filter dictionary values.
 
 Example:   The following script:
import yoix.*.*;

printf("%O\n", getProviders("SUN", regexp("^Cert.*Alg")));
returns a dump of the SUN provider dictionary entries with field names that start with Cert and contain Alg. Sample output is shown below.
Dictionary[2:0]
    CertPathBuilder.PKIX ValidationAlgorithm=^"RFC3280"
   >CertPathValidator.PKIX ValidationAlgorithm=^"RFC3280"
 
 Return:   Dictionary
 
 See Also:   adjustSecurity,
 
 See Also:   getCertificate, getProviderInfo

 

Yoix is a registered trademark of AT&T Inc.