BrightSide Workbench Full Report + Source Code
org.turro.auth.AuthParser Class Reference
Inheritance diagram for org.turro.auth.AuthParser:
Collaboration diagram for org.turro.auth.AuthParser:

Public Member Functions

boolean execute (IConstructor constructor, PrintWriter out, String[] tokens)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file AuthParser.java.

Member Function Documentation

◆ execute()

boolean org.turro.auth.AuthParser.execute ( IConstructor  constructor,
PrintWriter  out,
String[]  tokens 
)

Implements org.turro.parser.IParser.

Definition at line 36 of file AuthParser.java.

36  {
37  boolean done = false;
38  if(tokens.length > 0) {
39  if("auth-url".equals(tokens[0])) {
40  if(tokens.length == 4) { //{@auth-url:domain:mail:redir}
41  String url = AuthActions.getAccessURL(tokens[1], tokens[2], tokens[3]);
42  if(!Strings.isBlank(url)) {
43  out.write(url);
44  done = true;
45  }
46  }
47  } else if("auth-connector".equals(tokens[0])) {
48  if(tokens.length == 4) { //{@auth-connector:name}
49  IContact contact = Authentication.getIContact();
50  if(contact.isValid()) {
51  out.write(contact.getConnector(tokens[1]));
52  done = true;
53  }
54  }
55  }
56  }
57  return done;
58  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: