Available Methods
- setClientId ( )
- setEnabled ( )
- setSecret ( )
- setRedirectUris ( )
- setProtocol ( )
- setAdminUrl ( )
- setName ( )
- setProtocolMappers ( )
- setId ( )
- setBaseUrl ( )
- setPublicClient ( )
- getRedirectUris ( )
- getAttributes ( )
- setDirectAccessGrantsEnabled ( )
- setFullScopeAllowed ( )
- setAuthorizationSettings ( )
- setServiceAccountsEnabled ( )
- setAttributes ( )
- getClientId ( )
- getSecret ( )
- getId ( )
- setImplicitFlowEnabled ( )
- setConsentRequired ( )
- getAdminUrl ( )
- isDirectAccessGrantsEnabled ( )
- getProtocolMappers ( )
- setRootUrl ( )
- isStandardFlowEnabled ( )
- setAuthorizationServicesEnabled ( )
- getProtocol ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- org.junit.Before
- java.util.LinkedList
- java.util.stream.Collectors
- java.util.Objects
- java.net.URI
- java.util.concurrent.atomic.AtomicInteger
- org.junit.Assert
- java.util.concurrent.atomic.AtomicReference
- javax.ws.rs.core.MediaType
- javax.ws.rs.Path
- javax.ws.rs.core.Response
- javax.ws.rs.GET
- javax.ws.rs.Produces
- java.security.PrivateKey
- javax.ws.rs.POST
- java.security.KeyPair
- javax.ws.rs.Consumes
- org.hamcrest.Matchers
- javax.ws.rs.client.ClientBuilder
- javax.ws.rs.client.Client
- javax.ws.rs.NotFoundException
- javax.ws.rs.BadRequestException
- org.keycloak.representations.AccessToken
Java Code Examples for org.keycloak.representations.idm.ClientRepresentation#getSecret()
The following examples show how to use
org.keycloak.representations.idm.ClientRepresentation#getSecret() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClientImportService.java From keycloak-config-cli with Apache License 2.0 | 6 votes |
private boolean isClientEqual(String realm, ClientRepresentation existingClient, ClientRepresentation patchedClient) { if (!CloneUtil.deepEquals(existingClient, patchedClient, "id", "secret", "access", "protocolMappers")) { return false; } if (!ProtocolMapperUtil.areProtocolMappersEqual(patchedClient.getProtocolMappers(), existingClient.getProtocolMappers())) { return false; } String patchedClientSecret = patchedClient.getSecret(); if (patchedClientSecret == null) { return true; } String clientSecret = clientRepository.getClientSecret(realm, patchedClient.getClientId()); return clientSecret.equals(patchedClientSecret); }
Example 2
Source File: StripSecretsUtils.java From keycloak with Apache License 2.0 | 4 votes |
public static ClientRepresentation strip(ClientRepresentation rep) { if (rep.getSecret() != null) { rep.setSecret(maskNonVaultValue(rep.getSecret())); } return rep; }