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

静的公開メンバ関数

static String getSPDescriptorForClient (ClientModel client)
 

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ close()

void org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.close ( )
inline
92  {
93 
94  }

◆ create()

ClientInstallationProvider org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.create ( KeycloakSession  session)
inline
97  {
98  return this;
99  }

◆ generateInstallation()

Response org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.generateInstallation ( KeycloakSession  session,
RealmModel  realm,
ClientModel  client,
URI  serverBaseUri 
)
inline
57  {
58  String descriptor = getSPDescriptorForClient(client);
59  return Response.ok(descriptor, MediaType.TEXT_PLAIN_TYPE).build();
60  }
static String getSPDescriptorForClient(ClientModel client)
Definition: SamlSPDescriptorClientInstallation.java:41

◆ getDisplayType()

String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getDisplayType ( )
inline
68  {
69  return "SAML Metadata SPSSODescriptor";
70  }

◆ getFilename()

String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getFilename ( )
inline
78  {
79  return "saml-sp-metadata.xml";
80  }

◆ getHelpText()

String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getHelpText ( )
inline
73  {
74  return "SAML SP Metadata EntityDescriptor or rather SPSSODescriptor. This is an XML file.";
75  }

◆ getId()

String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getId ( )
inline
112  {
113  return "saml-sp-descriptor";
114  }

◆ getMediaType()

String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getMediaType ( )
inline
82  {
83  return MediaType.APPLICATION_XML;
84  }

◆ getProtocol()

String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getProtocol ( )
inline
63  {
64  return SamlProtocol.LOGIN_PROTOCOL;
65  }

◆ getSPDescriptorForClient()

static String org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.getSPDescriptorForClient ( ClientModel  client)
inlinestatic
41  {
42  SamlClient samlClient = new SamlClient(client);
43  String assertionUrl = client.getAttribute(SamlProtocol.SAML_ASSERTION_CONSUMER_URL_POST_ATTRIBUTE);
44  if (assertionUrl == null) assertionUrl = client.getManagementUrl();
45  String logoutUrl = client.getAttribute(SamlProtocol.SAML_SINGLE_LOGOUT_SERVICE_URL_POST_ATTRIBUTE);
46  if (logoutUrl == null) logoutUrl = client.getManagementUrl();
47  String nameIdFormat = samlClient.getNameIDFormat();
48  if (nameIdFormat == null) nameIdFormat = SamlProtocol.SAML_DEFAULT_NAMEID_FORMAT;
49  String spCertificate = SPMetadataDescriptor.xmlKeyInfo(" ", null, samlClient.getClientSigningCertificate(), KeyTypes.SIGNING.value(), true);
50  String encCertificate = SPMetadataDescriptor.xmlKeyInfo(" ", null, samlClient.getClientEncryptingCertificate(), KeyTypes.ENCRYPTION.value(), true);
51  return SPMetadataDescriptor.getSPDescriptor(JBossSAMLURIConstants.SAML_HTTP_POST_BINDING.get(), assertionUrl, logoutUrl,
52  samlClient.requiresClientSignature(), samlClient.requiresAssertionSignature(), samlClient.requiresEncryption(),
53  client.getClientId(), nameIdFormat, spCertificate, encCertificate);
54  }

◆ init()

void org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.init ( Config.Scope  config)
inline
102  {
103 
104  }

◆ isDownloadOnly()

boolean org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.isDownloadOnly ( )
inline
87  {
88  return false;
89  }

◆ postInit()

void org.keycloak.protocol.saml.installation.SamlSPDescriptorClientInstallation.postInit ( KeycloakSessionFactory  factory)
inline
107  {
108 
109  }

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