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

公開メンバ関数

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

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ close()

void org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.close ( )
inline

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

111  {
112 
113  }

◆ create()

ClientInstallationProvider org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.create ( KeycloakSession  session)
inline

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

116  {
117  return this;
118  }

◆ generateInstallation()

Response org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.generateInstallation ( KeycloakSession  session,
RealmModel  realm,
ClientModel  client,
URI  serverBaseUri 
)
inline

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

42  {
43  SamlClient samlClient = new SamlClient(client);
44  ByteArrayOutputStream baos = new ByteArrayOutputStream();
45  ZipOutputStream zip = new ZipOutputStream(baos);
46  String idpDescriptor = SamlIDPDescriptorClientInstallation.getIDPDescriptorForClient(session, realm, client, serverBaseUri);
47  String spDescriptor = SamlSPDescriptorClientInstallation.getSPDescriptorForClient(client);
48  String clientDirName = client.getClientId()
49  .replace('/', '_')
50  .replace(' ', '_');
51  try {
52  zip.putNextEntry(new ZipEntry(clientDirName + "/idp-metadata.xml"));
53  zip.write(idpDescriptor.getBytes());
54  zip.closeEntry();
55  zip.putNextEntry(new ZipEntry(clientDirName + "/sp-metadata.xml"));
56  zip.write(spDescriptor.getBytes());
57  zip.closeEntry();
58  if (samlClient.requiresClientSignature()) {
59  if (samlClient.getClientSigningPrivateKey() != null) {
60  zip.putNextEntry(new ZipEntry(clientDirName + "/client-private-key.pem"));
61  zip.write(samlClient.getClientSigningPrivateKey().getBytes());
62  zip.closeEntry();
63  }
64  if (samlClient.getClientSigningCertificate() != null) {
65  zip.putNextEntry(new ZipEntry(clientDirName + "/client-cert.pem"));
66  zip.write(samlClient.getClientSigningCertificate().getBytes());
67  zip.closeEntry();
68  }
69  }
70  zip.close();
71  baos.close();
72  } catch (IOException e) {
73  throw new RuntimeException(e);
74  }
75 
76 
77  return Response.ok(baos.toByteArray(), getMediaType()).build();
78  }
String getMediaType()
Definition: ModAuthMellonClientInstallation.java:101

◆ getDisplayType()

String org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.getDisplayType ( )
inline

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

86  {
87  return "Mod Auth Mellon files";
88  }

◆ getFilename()

String org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.getFilename ( )
inline

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

96  {
97  return "keycloak-mod-auth-mellon-sp-config.zip";
98  }

◆ getHelpText()

String org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.getHelpText ( )
inline

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

91  {
92  return "This is a zip file. It contains a SAML SP descriptor, SAML IDP descriptor, private key pem, and certificate pem that you will use to configure mod_auth_mellon for Apache. You'll use these files when crafting the main Apache configuration file. See mod_auth_mellon website for more details.";
93  }

◆ getId()

String org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.getId ( )
inline

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

131  {
132  return "mod-auth-mellon";
133  }

◆ getMediaType()

String org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.getMediaType ( )
inline

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

101  {
102  return "application/zip";
103  }

◆ getProtocol()

String org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.getProtocol ( )
inline

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

81  {
82  return SamlProtocol.LOGIN_PROTOCOL;
83  }

◆ init()

void org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.init ( Config.Scope  config)
inline

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

121  {
122 
123  }

◆ isDownloadOnly()

boolean org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.isDownloadOnly ( )
inline

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

106  {
107  return true;
108  }

◆ order()

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

◆ postInit()

void org.keycloak.protocol.saml.installation.ModAuthMellonClientInstallation.postInit ( KeycloakSessionFactory  factory)
inline

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

126  {
127 
128  }

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