keycloak
公開メンバ関数 | 静的公開メンバ関数 | 静的公開変数類 | 静的関数 | 静的非公開変数類 | 全メンバ一覧
org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper クラス
org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper の継承関係図
Inheritance graph
org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper 連携図
Collaboration graph

公開メンバ関数

List< ProviderConfigPropertygetConfigProperties ()
 
String getId ()
 
String getDisplayType ()
 
String getDisplayCategory ()
 
String getHelpText ()
 
void transformAttributeStatement (AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession)
 
String getProtocol ()
 
void close ()
 
final ProtocolMapper create (KeycloakSession session)
 
void init (Config.Scope config)
 
void postInit (KeycloakSessionFactory factory)
 
default void validateConfig (KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel client, ProtocolMapperModel mapperModel) throws ProtocolMapperConfigException
 
default int order ()
 

静的公開メンバ関数

static ProtocolMapperModel createAttributeMapper (String name, String userAttribute, String samlAttributeName, String nameFormat, String friendlyName, boolean consentRequired, String consentText)
 

静的公開変数類

static final String PROVIDER_ID = "saml-user-property-mapper"
 

静的関数

 [static initializer]
 

静的非公開変数類

static final List< ProviderConfigPropertyconfigProperties = new ArrayList<ProviderConfigProperty>()
 

詳解

Mappings UserModel property (the property name of a getter method) to an AttributeStatement.

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ [static initializer]()

org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.[static initializer] ( )
inlinestaticpackage

◆ close()

void org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.close ( )
inlineinherited

org.keycloak.provider.Providerを実装しています。

39  {
40 
41  }

◆ create()

final ProtocolMapper org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.create ( KeycloakSession  session)
inlineinherited

org.keycloak.provider.ProviderFactory< T extends Provider >を実装しています。

44  {
45  throw new RuntimeException("UNSUPPORTED METHOD");
46  }

◆ createAttributeMapper()

static ProtocolMapperModel org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.createAttributeMapper ( String  name,
String  userAttribute,
String  samlAttributeName,
String  nameFormat,
String  friendlyName,
boolean  consentRequired,
String  consentText 
)
inlinestatic
94  {
95  String mapperId = PROVIDER_ID;
96  return AttributeStatementHelper.createAttributeMapper(name, userAttribute, samlAttributeName, nameFormat, friendlyName,
97  mapperId);
98 
99  }
static final String PROVIDER_ID
Definition: UserPropertyAttributeStatementMapper.java:52

◆ getConfigProperties()

List<ProviderConfigProperty> org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getConfigProperties ( )
inline

org.keycloak.provider.ConfiguredProviderを実装しています。

55  {
56  return configProperties;
57  }
static final List< ProviderConfigProperty > configProperties
Definition: UserPropertyAttributeStatementMapper.java:39

◆ getDisplayCategory()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getDisplayCategory ( )
inline

org.keycloak.protocol.ProtocolMapperを実装しています。

69  {
70  return AttributeStatementHelper.ATTRIBUTE_STATEMENT_CATEGORY;
71  }

◆ getDisplayType()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getDisplayType ( )
inline

org.keycloak.protocol.ProtocolMapperを実装しています。

64  {
65  return "User Property";
66  }

◆ getHelpText()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getHelpText ( )
inline

org.keycloak.provider.ConfiguredProviderを実装しています。

74  {
75  return "Map a built in user property (email, firstName, lastName) to a SAML attribute type.";
76  }

◆ getId()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getId ( )
inline

org.keycloak.provider.ProviderFactory< T extends Provider >を実装しています。

59  {
60  return PROVIDER_ID;
61  }
static final String PROVIDER_ID
Definition: UserPropertyAttributeStatementMapper.java:52

◆ getProtocol()

String org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.getProtocol ( )
inlineinherited

org.keycloak.protocol.ProtocolMapperを実装しています。

34  {
35  return SamlProtocol.LOGIN_PROTOCOL;
36  }

◆ init()

void org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.init ( Config.Scope  config)
inlineinherited

org.keycloak.provider.ProviderFactory< T extends Provider >を実装しています。

49  {
50  }

◆ order()

default int org.keycloak.provider.ProviderFactory< T extends Provider >.order ( )
inlineinherited

◆ postInit()

void org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.postInit ( KeycloakSessionFactory  factory)
inlineinherited

org.keycloak.provider.ProviderFactory< T extends Provider >を実装しています。

53  {
54 
55  }

◆ transformAttributeStatement()

void org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.transformAttributeStatement ( AttributeStatementType  attributeStatement,
ProtocolMapperModel  mappingModel,
KeycloakSession  session,
UserSessionModel  userSession,
AuthenticatedClientSessionModel  clientSession 
)
inline

org.keycloak.protocol.saml.mappers.SAMLAttributeStatementMapperを実装しています。

79  {
80  UserModel user = userSession.getUser();
81  String propertyName = mappingModel.getConfig().get(ProtocolMapperUtils.USER_ATTRIBUTE);
82 
83  if (propertyName == null || propertyName.trim().isEmpty()) return;
84 
85  String propertyValue = ProtocolMapperUtils.getUserModelValue(user, propertyName);
86 
87  if (propertyValue == null) return;
88 
89  AttributeStatementHelper.addAttribute(attributeStatement, mappingModel, propertyValue);
90  }

◆ validateConfig()

default void org.keycloak.protocol.ProtocolMapper.validateConfig ( KeycloakSession  session,
RealmModel  realm,
ProtocolMapperContainerModel  client,
ProtocolMapperModel  mapperModel 
) throws ProtocolMapperConfigException
inlineinherited

Called when instance of mapperModel is created/updated for this protocolMapper through admin endpoint

引数
session
realm
clientclient or clientTemplate
mapperModel
例外
ProtocolMapperConfigExceptionif configuration provided in mapperModel is not valid

org.keycloak.protocol.saml.mappers.ScriptBasedMapper, org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper, org.keycloak.protocol.oidc.mappers.AbstractPairwiseSubMapperで実装されています。

46  {
47  };

メンバ詳解

◆ configProperties

final List<ProviderConfigProperty> org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.configProperties = new ArrayList<ProviderConfigProperty>()
staticprivate

◆ PROVIDER_ID

final String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.PROVIDER_ID = "saml-user-property-mapper"
static

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