| Modifier and Type | Field and Description |
|---|---|
| private KeyPair | |
| public static final String | |
| private SignatureSignerContext | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Integer | |
| protected JsonWebToken | |
| public String | |
| public String | getId()
Implements org. |
| public PublicKey | |
| protected int | |
| public void | init(AdapterConfig
the adapter configuration deployment, Object the configuration of your provider read from keycloak.json . For the kerberos-keytab example above, it will return map with the single key "keytab" with value "/tmp/foo" config)Implements org. |
| public void | setClientCredentials(AdapterConfig
Fully resolved deployment deployment, Map<String, String> You should put any HTTP request headers you want to use for authentication of client. These headers will be attached to the HTTP request sent to Keycloak server requestHeaders, Map<String, String> You should put any request parameters you want to use for authentication of client. These parameters will be attached to the HTTP request sent to Keycloak server formParams)Implements org. |
| public void | |
| public void | |
| public void |
| keyPair | back to summary |
|---|---|
| private KeyPair keyPair | |
| PROVIDER_ID | back to summary |
|---|---|
| public static final String PROVIDER_ID | |
| sigCtx | back to summary |
|---|---|
| private SignatureSignerContext sigCtx | |
| tokenTimeout | back to summary |
|---|---|
| private int tokenTimeout | |
| JWTClientCredentialsProvider | back to summary |
|---|---|
| public JWTClientCredentialsProvider() | |
| asInt | back to summary |
|---|---|
| private Integer asInt(Map<String, Object> cfg, String cfgKey, int defaultValue) | |
| createRequestToken | back to summary |
|---|---|
| protected JsonWebToken createRequestToken(String clientId, String realmInfoUrl) | |
| createSignedRequestToken | back to summary |
|---|---|
| public String createSignedRequestToken(String clientId, String realmInfoUrl) | |
| getId | back to summary |
|---|---|
| public String getId() Implements org. Doc from org. Return the ID of the provider. Use this ID in the keycloak.json configuration as the subelement of the "credentials" element For example if your provider has ID "kerberos-keytab" , use the configuration like this in keycloak.json "credentials": { "kerberos-keytab": { "keytab": "/tmp/foo" } }
| |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() | |
| getTokenTimeout | back to summary |
|---|---|
| protected int getTokenTimeout() | |
| init | back to summary |
|---|---|
| public void init(AdapterConfig deployment, Object config) Implements org. Doc from org. Called by adapter during deployment of your application. You can for example read configuration and init your authenticator here
| |
| setClientCredentials | back to summary |
|---|---|
| public void setClientCredentials(AdapterConfig deployment, Map<String, String> requestHeaders, Map<String, String> formParams) Implements org. Doc from org. Called every time adapter needs to perform backchannel request
| |
| setTokenTimeout | back to summary |
|---|---|
| public void setTokenTimeout(int tokenTimeout) | |
| setupKeyPair | back to summary |
|---|---|
| public void setupKeyPair(KeyPair keyPair) | |
| setupKeyPair | back to summary |
|---|---|
| public void setupKeyPair(KeyPair keyPair, String algorithm) | |