keycloak-service
公開メンバ関数 | 静的公開メンバ関数 | 静的公開変数類 | 静的関数 | 静的非公開変数類 | 全メンバ一覧
org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper クラス
org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper の継承関係図
Inheritance graph
org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper 連携図
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)
 

静的公開変数類

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

静的関数

 [static initializer]
 

静的非公開変数類

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

詳解

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

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ [static initializer]()

org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper.[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.UserAttributeStatementMapper.createAttributeMapper ( String  name,
String  userAttribute,
String  samlAttributeName,
String  nameFormat,
String  friendlyName 
)
inlinestatic
89  {
90  String mapperId = PROVIDER_ID;
91  return AttributeStatementHelper.createAttributeMapper(name, userAttribute, samlAttributeName, nameFormat, friendlyName,
92  mapperId);
93 
94  }
static final String PROVIDER_ID
Definition: UserAttributeStatementMapper.java:53

◆ getConfigProperties()

List<ProviderConfigProperty> org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper.getConfigProperties ( )
inline
56  {
57  return configProperties;
58  }
static final List< ProviderConfigProperty > configProperties
Definition: UserAttributeStatementMapper.java:40

◆ getDisplayCategory()

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

◆ getDisplayType()

String org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper.getDisplayType ( )
inline
65  {
66  return "User Attribute";
67  }

◆ getHelpText()

String org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper.getHelpText ( )
inline
75  {
76  return "Map a custom user attribute to a to a SAML attribute.";
77  }

◆ getId()

String org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper.getId ( )
inline
60  {
61  return PROVIDER_ID;
62  }
static final String PROVIDER_ID
Definition: UserAttributeStatementMapper.java:53

◆ 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.UserAttributeStatementMapper.transformAttributeStatement ( AttributeStatementType  attributeStatement,
ProtocolMapperModel  mappingModel,
KeycloakSession  session,
UserSessionModel  userSession,
AuthenticatedClientSessionModel  clientSession 
)
inline

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

80  {
81  UserModel user = userSession.getUser();
82  String attributeName = mappingModel.getConfig().get(ProtocolMapperUtils.USER_ATTRIBUTE);
83  List<String> attributeValues = KeycloakModelUtils.resolveAttribute(user, attributeName);
84  if (attributeValues.isEmpty()) return;
85  AttributeStatementHelper.addAttributes(attributeStatement, mappingModel, attributeValues);
86  }

メンバ詳解

◆ configProperties

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

◆ PROVIDER_ID

final String org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper.PROVIDER_ID = "saml-user-attribute-mapper"
static

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