public class ConfigurationKey
extends java.lang.Object
oauth.config.id configuration property in
order to associate a configuration identifier with the metrics so that the metrics are then grouped, and can be queried
by that id.
If oauth.config.id is not specified a configuration id is calculated from other configuration parameters in a way
that is stable across application restarts.
The configuration id is set on the metrics as context attribute.
OAuth validators for the various listeners are cashed in a global singleton and indexed by the ConfigurationKey. Usually multiple listener are configured differently and are each handled by its own instance of the validator. But if more listeners are configured with exactly the same configuration parameters, they will share the same ConfigurationKey and will all be handled my a single validator instance.
| Constructor and Description |
|---|
ConfigurationKey(java.lang.String configId,
ValidatorKey validatorKey)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getConfigId()
Get the config id
|
ValidatorKey |
getValidatorKey()
Get the validator key
|
int |
hashCode() |
java.lang.String |
toString() |
public ConfigurationKey(java.lang.String configId,
ValidatorKey validatorKey)
configId - Configuration id for this validatorvalidatorKey - Validator key for this validatorpublic java.lang.String getConfigId()
public ValidatorKey getValidatorKey()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2024. All rights reserved.