BrightSide Workbench Full Report + Source Code
org.turro.action.Secrets Class Reference

Static Public Member Functions

static String getSecret (String keys)
 
static< T > T getObject (String keys)
 
static< T > T getObject (KeyValueMap kvm)
 
static boolean isSecret (String key, Object value)
 

Detailed Description

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

Definition at line 33 of file Secrets.java.

Member Function Documentation

◆ getObject() [1/2]

static <T> T org.turro.action.Secrets.getObject ( KeyValueMap  kvm)
static

Definition at line 55 of file Secrets.java.

55  {
56  for(ISecret iSecret : Instances.cached().byAnnotation(Secret.class, ISecret.class)) {
57  T value = iSecret.<T>get(kvm);
58  if(!isEmpty(value)) {
59  return value;
60  }
61  }
62  return null;
63  }

◆ getObject() [2/2]

static <T> T org.turro.action.Secrets.getObject ( String  keys)
static

Definition at line 46 of file Secrets.java.

46  {
47  try {
48  return Secrets.<T>getObject(new KeyValueMap(keys));
49  } catch (ParserException ex) {
50  Logger.getLogger(Secrets.class.getName()).log(Level.SEVERE, null, ex);
51  }
52  return null;
53  }
static< T > T getObject(String keys)
Definition: Secrets.java:46
Here is the caller graph for this function:

◆ getSecret()

static String org.turro.action.Secrets.getSecret ( String  keys)
static

Definition at line 37 of file Secrets.java.

37  {
38  try {
39  return Secrets.<String>getObject(new KeyValueMap(keys));
40  } catch (ParserException ex) {
41  Logger.getLogger(Secrets.class.getName()).log(Level.SEVERE, null, ex);
42  }
43  return null;
44  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSecret()

static boolean org.turro.action.Secrets.isSecret ( String  key,
Object  value 
)
static

Definition at line 65 of file Secrets.java.

65  {
66  for(ISecret iSecret : Instances.cached().byAnnotation(Secret.class, ISecret.class)) {
67  if(iSecret.is(key, value)) {
68  return true;
69  }
70  }
71  return false;
72  }
Here is the caller graph for this function:

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