gluu
公開メンバ関数 | 静的公開変数類 | 変数 | 非公開変数類 | 全メンバ一覧
org.gluu.credmanager.plugins.authnmethod.OTPExtension クラス
org.gluu.credmanager.plugins.authnmethod.OTPExtension の継承関係図
Inheritance graph
org.gluu.credmanager.plugins.authnmethod.OTPExtension 連携図
Collaboration graph

公開メンバ関数

 OTPExtension ()
 
String getUINameKey ()
 
String getAcr ()
 
String getPanelTitleKey ()
 
String getPanelTextKey ()
 
String getPanelButtonKey ()
 
String getPanelBottomTextKey ()
 
String getPageUrl ()
 
List< BasicCredentialgetEnrolledCreds (String id)
 
List< BasicCredentialgetEnrolledCreds (String id, boolean valid)
 
int getTotalUserCreds (String id)
 
int getTotalUserCreds (String id, boolean valid)
 
boolean mayBe2faActivationRequisite ()
 
void reloadConfiguration ()
 

静的公開変数類

static final String ACR = "otp"
 

変数

ILdapService ldapService
 
ObjectMapper mapper
 

非公開変数類

Logger logger = LoggerFactory.getLogger(getClass())
 
OTPService otpService
 

詳解

Note: No injection can take place at extensions because instances are handled by p4fj

著者
jgomer

構築子と解体子

◆ OTPExtension()

org.gluu.credmanager.plugins.authnmethod.OTPExtension.OTPExtension ( )
inline
34  {
35  otpService = Utils.managedBean(OTPService.class);
36  }
OTPService otpService
Definition: OTPExtension.java:32

関数詳解

◆ getAcr()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getAcr ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

42  {
43  return ACR;
44  }
static final String ACR
Definition: OTPExtension.java:28

◆ getEnrolledCreds() [1/2]

List<BasicCredential> org.gluu.credmanager.plugins.authnmethod.OTPExtension.getEnrolledCreds ( String  id)
inline

org.gluu.credmanager.extension.UserCredentialsInfoを実装しています。

66  {
67  return getEnrolledCreds(id, true);
68  }
List< BasicCredential > getEnrolledCreds(String id)
Definition: OTPExtension.java:66

◆ getEnrolledCreds() [2/2]

List<BasicCredential> org.gluu.credmanager.plugins.authnmethod.OTPExtension.getEnrolledCreds ( String  id,
boolean  valid 
)
inline

org.gluu.credmanager.extension.UserCredentialsInfoを実装しています。

70  {
71 
72  try {
73  return otpService.getDevices(id).stream()
74  .map(dev -> new BasicCredential(dev.getNickName(), dev.getAddedOn())).collect(Collectors.toList());
75  } catch (Exception e) {
76  logger.error(e.getMessage(), e);
77  return Collections.emptyList();
78  }
79  }
List< OTPDevice > getDevices(String userId)
Definition: OTPService.java:86
OTPService otpService
Definition: OTPExtension.java:32
Logger logger
Definition: OTPExtension.java:30

◆ getPageUrl()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getPageUrl ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

62  {
63  return "user/otp-detail.zul";
64  }

◆ getPanelBottomTextKey()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getPanelBottomTextKey ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

58  {
59  return "usr.otp_gauth_download";
60  }

◆ getPanelButtonKey()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getPanelButtonKey ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

54  {
55  return "usr.otp_changeadd";
56  }

◆ getPanelTextKey()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getPanelTextKey ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

50  {
51  return "usr.otp_text";
52  }

◆ getPanelTitleKey()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getPanelTitleKey ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

46  {
47  return "usr.otp_title";
48  }

◆ getTotalUserCreds() [1/2]

int org.gluu.credmanager.plugins.authnmethod.OTPExtension.getTotalUserCreds ( String  id)
inline

org.gluu.credmanager.extension.UserCredentialsInfoを実装しています。

81  {
82  return getTotalUserCreds(id, true);
83  }
int getTotalUserCreds(String id)
Definition: OTPExtension.java:81

◆ getTotalUserCreds() [2/2]

int org.gluu.credmanager.plugins.authnmethod.OTPExtension.getTotalUserCreds ( String  id,
boolean  valid 
)
inline

org.gluu.credmanager.extension.UserCredentialsInfoを実装しています。

85  {
86  return otpService.getDevicesTotal(id);
87  }
int getDevicesTotal(String userId)
Definition: OTPService.java:73
OTPService otpService
Definition: OTPExtension.java:32

◆ getUINameKey()

String org.gluu.credmanager.plugins.authnmethod.OTPExtension.getUINameKey ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

38  {
39  return "usr.otp_label";
40  }

◆ mayBe2faActivationRequisite()

boolean org.gluu.credmanager.plugins.authnmethod.OTPExtension.mayBe2faActivationRequisite ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

89  {
90  return true;
91  }

◆ reloadConfiguration()

void org.gluu.credmanager.plugins.authnmethod.OTPExtension.reloadConfiguration ( )
inline

org.gluu.credmanager.extension.AuthnMethodを実装しています。

93  {
95  }
OTPService otpService
Definition: OTPExtension.java:32
void reloadConfiguration()
Definition: OTPService.java:60

メンバ詳解

◆ ACR

final String org.gluu.credmanager.plugins.authnmethod.OTPExtension.ACR = "otp"
static

◆ ldapService

ILdapService org.gluu.credmanager.plugins.BaseSystemExtension.ldapService
packageinherited

◆ logger

Logger org.gluu.credmanager.plugins.authnmethod.OTPExtension.logger = LoggerFactory.getLogger(getClass())
private

◆ mapper

ObjectMapper org.gluu.credmanager.plugins.BaseSystemExtension.mapper
packageinherited

◆ otpService

OTPService org.gluu.credmanager.plugins.authnmethod.OTPExtension.otpService
private

このクラス詳解は次のファイルから抽出されました: