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

公開メンバ関数

List< ProviderConfigProperty > getConfigProperties ()
 
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)
 

静的公開メンバ関数

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< ProviderConfigProperty > configProperties = 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
39  {
40 
41  }

◆ create()

final ProtocolMapper org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.create ( KeycloakSession  session)
inlineinherited
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
55  {
56  return configProperties;
57  }
static final List< ProviderConfigProperty > configProperties
Definition: UserPropertyAttributeStatementMapper.java:39

◆ getDisplayCategory()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getDisplayCategory ( )
inline
69  {
70  return AttributeStatementHelper.ATTRIBUTE_STATEMENT_CATEGORY;
71  }

◆ getDisplayType()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getDisplayType ( )
inline
64  {
65  return "User Property";
66  }

◆ getHelpText()

String org.keycloak.protocol.saml.mappers.UserPropertyAttributeStatementMapper.getHelpText ( )
inline
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
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
34  {
35  return SamlProtocol.LOGIN_PROTOCOL;
36  }

◆ init()

void org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.init ( Config.Scope  config)
inlineinherited
49  {
50  }

◆ postInit()

void org.keycloak.protocol.saml.mappers.AbstractSAMLProtocolMapper.postInit ( KeycloakSessionFactory  factory)
inlineinherited
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  }

メンバ詳解

◆ 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

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