BrightSide Workbench Full Report + Source Code
org.turro.elephant.entities.db.SSOIdentity Class Reference
Inheritance diagram for org.turro.elephant.entities.db.SSOIdentity:
Collaboration diagram for org.turro.elephant.entities.db.SSOIdentity:

Public Member Functions

byte[] getClientAssertion ()
 
void setClientAssertion (byte[] clientAssertion)
 
byte[] getClientId ()
 
void setClientId (byte[] clientId)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
Date getDateUsed ()
 
void setDateUsed (Date dateUsed)
 
String getDetails ()
 
void setDetails (String details)
 
String getRemoteIp ()
 
void setRemoteIp (String remoteIp)
 
String getGeoIp ()
 
void setGeoIp (String geoIp)
 
Object readGeo (String path)
 
IContact getContact ()
 
void setContact (IContact contact)
 

Detailed Description

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

Definition at line 40 of file SSOIdentity.java.

Member Function Documentation

◆ getClientAssertion()

byte [] org.turro.elephant.entities.db.SSOIdentity.getClientAssertion ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 63 of file SSOIdentity.java.

63  {
64  return clientAssertion.getBytes(StandardCharsets.UTF_8);
65  }

◆ getClientId()

byte [] org.turro.elephant.entities.db.SSOIdentity.getClientId ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 72 of file SSOIdentity.java.

72  {
73  return clientId;
74  }

◆ getContact()

IContact org.turro.elephant.entities.db.SSOIdentity.getContact ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 141 of file SSOIdentity.java.

141  {
142  if(_contact == null) {
143  _contact = Contacts.getContactById(idContact);
144  }
145  return _contact;
146  }
Here is the call graph for this function:

◆ getDateUsed()

Date org.turro.elephant.entities.db.SSOIdentity.getDateUsed ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 90 of file SSOIdentity.java.

90  {
91  return dateUsed;
92  }

◆ getDetails()

String org.turro.elephant.entities.db.SSOIdentity.getDetails ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 99 of file SSOIdentity.java.

99  {
100  return details;
101  }
Here is the caller graph for this function:

◆ getGeoIp()

String org.turro.elephant.entities.db.SSOIdentity.getGeoIp ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 117 of file SSOIdentity.java.

117  {
118  return geoIp;
119  }

◆ getIdContact()

String org.turro.elephant.entities.db.SSOIdentity.getIdContact ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 81 of file SSOIdentity.java.

81  {
82  return idContact;
83  }

◆ getRemoteIp()

String org.turro.elephant.entities.db.SSOIdentity.getRemoteIp ( )

Implements org.turro.elephant.sso.ISSOIdentity.

Definition at line 108 of file SSOIdentity.java.

108  {
109  return remoteIp;
110  }

◆ readGeo()

Object org.turro.elephant.entities.db.SSOIdentity.readGeo ( String  path)

Definition at line 127 of file SSOIdentity.java.

127  {
128  try {
129  return (Strings.isBlank(geoIp) || geoIp.contains("error")) ? "" : JsonPath.read(geoIp, path);
130  } catch (Exception ex) {
131  WebLoggers.info(this).exception(ex).log();
132  return "";
133  }
134  }
Here is the call graph for this function:

◆ setClientAssertion()

void org.turro.elephant.entities.db.SSOIdentity.setClientAssertion ( byte[]  clientAssertion)

Definition at line 67 of file SSOIdentity.java.

67  {
68  this.clientAssertion = new String(clientAssertion, StandardCharsets.UTF_8);
69  }
Here is the caller graph for this function:

◆ setClientId()

void org.turro.elephant.entities.db.SSOIdentity.setClientId ( byte[]  clientId)

Definition at line 76 of file SSOIdentity.java.

76  {
77  this.clientId = clientId;
78  }
Here is the caller graph for this function:

◆ setContact()

void org.turro.elephant.entities.db.SSOIdentity.setContact ( IContact  contact)

Definition at line 148 of file SSOIdentity.java.

148  {
149  _contact = contact;
150  idContact = _contact != null ? _contact.getId() : null;
151  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDateUsed()

void org.turro.elephant.entities.db.SSOIdentity.setDateUsed ( Date  dateUsed)

Definition at line 94 of file SSOIdentity.java.

94  {
95  this.dateUsed = dateUsed;
96  }

◆ setDetails()

void org.turro.elephant.entities.db.SSOIdentity.setDetails ( String  details)

Definition at line 103 of file SSOIdentity.java.

103  {
104  this.details = details;
105  }

◆ setGeoIp()

void org.turro.elephant.entities.db.SSOIdentity.setGeoIp ( String  geoIp)

Definition at line 121 of file SSOIdentity.java.

121  {
122  this.geoIp = geoIp;
123  }

◆ setIdContact()

void org.turro.elephant.entities.db.SSOIdentity.setIdContact ( String  idContact)

Definition at line 85 of file SSOIdentity.java.

85  {
86  this.idContact = idContact;
87  }

◆ setRemoteIp()

void org.turro.elephant.entities.db.SSOIdentity.setRemoteIp ( String  remoteIp)

Definition at line 112 of file SSOIdentity.java.

112  {
113  this.remoteIp = remoteIp;
114  }

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