Class TrustedHostClientRegistrationPolicy
java.lang.Object
org.keycloak.services.clientregistration.policy.impl.TrustedHostClientRegistrationPolicy
- All Implemented Interfaces:
Provider
,ClientRegistrationPolicy
- Author:
- Marek Posolda
-
Constructor Summary
ConstructorDescriptionTrustedHostClientRegistrationPolicy
(KeycloakSession session, ComponentModel componentModel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterRegister
(ClientRegistrationContext context, ClientModel clientModel) void
afterUpdate
(ClientRegistrationContext context, ClientModel clientModel) void
beforeDelete
(ClientRegistrationProvider provider, ClientModel clientModel) void
beforeRegister
(ClientRegistrationContext context) void
beforeUpdate
(ClientRegistrationContext context, ClientModel clientModel) void
beforeView
(ClientRegistrationProvider provider, ClientModel clientModel) protected void
protected void
protected void
protected void
protected void
verifyHost
(String hostAddress) protected String
verifyHostInTrustedDomains
(String hostAddress, List<String> trustedDomains) protected String
verifyHostInTrustedHosts
(String hostAddress, List<String> trustedHosts) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy
close
-
Constructor Details
-
TrustedHostClientRegistrationPolicy
-
-
Method Details
-
beforeRegister
public void beforeRegister(ClientRegistrationContext context) throws ClientRegistrationPolicyException - Specified by:
beforeRegister
in interfaceClientRegistrationPolicy
- Throws:
ClientRegistrationPolicyException
-
afterRegister
- Specified by:
afterRegister
in interfaceClientRegistrationPolicy
-
beforeUpdate
public void beforeUpdate(ClientRegistrationContext context, ClientModel clientModel) throws ClientRegistrationPolicyException - Specified by:
beforeUpdate
in interfaceClientRegistrationPolicy
- Throws:
ClientRegistrationPolicyException
-
afterUpdate
- Specified by:
afterUpdate
in interfaceClientRegistrationPolicy
-
beforeView
public void beforeView(ClientRegistrationProvider provider, ClientModel clientModel) throws ClientRegistrationPolicyException - Specified by:
beforeView
in interfaceClientRegistrationPolicy
- Throws:
ClientRegistrationPolicyException
-
beforeDelete
public void beforeDelete(ClientRegistrationProvider provider, ClientModel clientModel) throws ClientRegistrationPolicyException - Specified by:
beforeDelete
in interfaceClientRegistrationPolicy
- Throws:
ClientRegistrationPolicyException
-
verifyHost
-
verifyHost
-
getTrustedHosts
-
getTrustedDomains
-
verifyHostInTrustedHosts
-
verifyHostInTrustedDomains
-
verifyClientUrls
protected void verifyClientUrls(ClientRegistrationContext context) throws ClientRegistrationPolicyException -
checkURLTrusted
-
checkURITrusted
-