keycloak-service
公開メンバ関数 | 全メンバ一覧
org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation クラス
org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation の継承関係図
Inheritance graph
org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation 連携図
Collaboration graph

公開メンバ関数

Response generateInstallation (KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri)
 
String getProtocol ()
 
String getDisplayType ()
 
String getHelpText ()
 
void close ()
 
ClientInstallationProvider create (KeycloakSession session)
 
void init (Config.Scope config)
 
void postInit (KeycloakSessionFactory factory)
 
String getId ()
 
boolean isDownloadOnly ()
 
String getFilename ()
 
String getMediaType ()
 

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ close()

void org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.close ( )
inline
99  {
100 
101  }

◆ create()

ClientInstallationProvider org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.create ( KeycloakSession  session)
inline
104  {
105  return this;
106  }

◆ generateInstallation()

Response org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.generateInstallation ( KeycloakSession  session,
RealmModel  realm,
ClientModel  client,
URI  baseUri 
)
inline
39  {
40  StringBuffer buffer = new StringBuffer();
41  buffer.append("<secure-deployment name=\"WAR MODULE NAME.war\">\n");
42  buffer.append(" <realm>").append(realm.getName()).append("</realm>\n");
43  buffer.append(" <auth-server-url>").append(baseUri.toString()).append("</auth-server-url>\n");
44  if (client.isBearerOnly()){
45  buffer.append(" <bearer-only>true</bearer-only>\n");
46 
47  } else if (client.isPublicClient()) {
48  buffer.append(" <public-client>true</public-client>\n");
49  }
50  buffer.append(" <ssl-required>").append(realm.getSslRequired().name()).append("</ssl-required>\n");
51  buffer.append(" <resource>").append(client.getClientId()).append("</resource>\n");
52 
53  if (KeycloakOIDCClientInstallation.showVerifyTokenAudience(client)) {
54  buffer.append(" <verify-token-audience>true</verify-token-audience>\n");
55  }
56 
57  String cred = client.getSecret();
58  if (KeycloakOIDCClientInstallation.showClientCredentialsAdapterConfig(client)) {
59  Map<String, Object> adapterConfig = KeycloakOIDCClientInstallation.getClientCredentialsAdapterConfig(session, client);
60  for (Map.Entry<String, Object> entry : adapterConfig.entrySet()) {
61  buffer.append(" <credential name=\"" + entry.getKey() + "\">");
62 
63  Object value = entry.getValue();
64  if (value instanceof Map) {
65  buffer.append("\n");
66  Map<String, Object> asMap = (Map<String, Object>) value;
67  for (Map.Entry<String, Object> credEntry : asMap.entrySet()) {
68  buffer.append(" <" + credEntry.getKey() + ">" + credEntry.getValue().toString() + "</" + credEntry.getKey() + ">\n");
69  }
70  buffer.append(" </credential>\n");
71  } else {
72  buffer.append(value.toString()).append("</credential>\n");
73  }
74  }
75  }
76  if (client.getRoles().size() > 0) {
77  buffer.append(" <use-resource-role-mappings>true</use-resource-role-mappings>\n");
78  }
79  buffer.append("</secure-deployment>\n");
80  return Response.ok(buffer.toString(), MediaType.TEXT_PLAIN_TYPE).build();
81  }

◆ getDisplayType()

String org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.getDisplayType ( )
inline
89  {
90  return "Keycloak OIDC JBoss Subsystem XML";
91  }

◆ getFilename()

String org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.getFilename ( )
inline
129  {
130  return "keycloak-oidc-subsystem.xml";
131  }

◆ getHelpText()

String org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.getHelpText ( )
inline
94  {
95  return "XML snippet you must edit and add to the Keycloak OIDC subsystem on your client app server. This type of configuration is useful when you can't or don't want to crack open your WAR file.";
96  }

◆ getId()

String org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.getId ( )
inline
119  {
120  return "keycloak-oidc-jboss-subsystem";
121  }

◆ getMediaType()

String org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.getMediaType ( )
inline
134  {
135  return MediaType.APPLICATION_XML;
136  }

◆ getProtocol()

String org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.getProtocol ( )
inline
84  {
85  return OIDCLoginProtocol.LOGIN_PROTOCOL;
86  }

◆ init()

void org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.init ( Config.Scope  config)
inline
109  {
110 
111  }

◆ isDownloadOnly()

boolean org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.isDownloadOnly ( )
inline
124  {
125  return false;
126  }

◆ postInit()

void org.keycloak.protocol.oidc.installation.KeycloakOIDCJbossSubsystemClientInstallation.postInit ( KeycloakSessionFactory  factory)
inline
114  {
115 
116  }

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