50                 final File f = 
new File(
"U:\\own\\project\\oxAuth\\Server\\integrations\\duo\\ExternalAuthenticator.py");
    51                 final String pythonScript = IOUtils.toString(
new FileInputStream(f));
    52                 System.out.println(
"Python script: \n" + pythonScript);
    54                 final List<CustomProperty> fields = 
new ArrayList<CustomProperty>();
    55                 fields.add(
createAttribute(
"property.duo_host", 
"api-fa928e64.duosecurity.com"));
    56                 fields.add(
createAttribute(
"property.duo_ikey", 
"DIT2906CETIMKHE1QND8"));
    57                 fields.add(
createAttribute(
"property.duo_skey", 
"cjNn9R4QvQV0R2Mynw2CauCUesojuR3cPGDoVygM"));
    58                 fields.add(
createAttribute(
"property.duo_akey", 
"6f88ca3dea7ac88a514cdef7c18021678ccaf0e1"));
    61                 final oxIDPAuthConf c = 
new oxIDPAuthConf();
    62                 c.setType(
"customAuthentication");
    70                 System.out.println(
"JSON: \n" + json);
    72                 final oxIDPAuthConf fromJson = 
fromJSON(json);
    73                 for (CustomProperty attr : fromJson.getFields()) {
    75                                 System.out.println(
"Script from json: \n" + attr.getValues().get(0));
 static final String SCRIPT_FIELD_NAME
Definition: PythonToLdapString.java:28
 
oxIDPAuthConf fromJSON(String p_json)
Definition: PythonToLdapString.java:97
 
String getJSONString(oxIDPAuthConf conf)
Definition: PythonToLdapString.java:90
 
CustomProperty createAttribute(String p_name, String p_value)
Definition: PythonToLdapString.java:80