keycloak-service
公開メンバ関数 | 静的公開メンバ関数 | 関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.UserIdentityToCustomAttributeMapper クラス
org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.UserIdentityToCustomAttributeMapper の継承関係図
Inheritance graph
org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.UserIdentityToCustomAttributeMapper 連携図
Collaboration graph

公開メンバ関数

UserModel find (AuthenticationFlowContext context, Object userIdentity) throws Exception
 

静的公開メンバ関数

static UserIdentityToModelMapper getUsernameOrEmailMapper ()
 
static UserIdentityToModelMapper getUserIdentityToCustomAttributeMapper (String attributeName)
 

関数

 UserIdentityToCustomAttributeMapper (String customAttribute)
 

非公開変数類

String _customAttribute
 

詳解

構築子と解体子

◆ UserIdentityToCustomAttributeMapper()

50  {
51  _customAttribute = customAttribute;
52  }

関数詳解

◆ find()

UserModel org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.UserIdentityToCustomAttributeMapper.find ( AuthenticationFlowContext  context,
Object  userIdentity 
) throws Exception
inline
55  {
56  KeycloakSession session = context.getSession();
57  List<UserModel> users = session.users().searchForUserByUserAttribute(_customAttribute, userIdentity.toString(), context.getRealm());
58  if (users != null && users.size() > 1) {
59  throw new ModelDuplicateException();
60  }
61  return users != null && users.size() == 1 ? users.get(0) : null;
62  }

◆ getUserIdentityToCustomAttributeMapper()

static UserIdentityToModelMapper org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.getUserIdentityToCustomAttributeMapper ( String  attributeName)
inlinestaticinherited
69  {
70  return new UserIdentityToCustomAttributeMapper(attributeName);
71  }

◆ getUsernameOrEmailMapper()

static UserIdentityToModelMapper org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.getUsernameOrEmailMapper ( )
inlinestaticinherited
65  {
66  return new UsernameOrEmailMapper();
67  }

メンバ詳解

◆ _customAttribute

String org.keycloak.authentication.authenticators.x509.UserIdentityToModelMapper.UserIdentityToCustomAttributeMapper._customAttribute
private

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