Class SecureGrantMap
- All Implemented Interfaces:
SecureGrant
,Serializable
,Cloneable
,Map<String,
String>
An implementation of
HashMap
that also implements SecureGrant
.- Since:
- 1.2.0
- Author:
- James Kleeh
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from interface io.micronaut.security.oauth2.grants.SecureGrant
KEY_CLIENT_ID, KEY_CLIENT_SECRET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setClientId
(String clientId) Sets the client id in the grant.void
setClientSecret
(String clientSecret) Sets the client secret in the grant.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
SecureGrantMap
public SecureGrantMap(int initialCapacity) - Parameters:
initialCapacity
- The initial capacity
-
SecureGrantMap
public SecureGrantMap()Default constructor.
-
-
Method Details
-
setClientId
Description copied from interface:SecureGrant
Sets the client id in the grant.- Specified by:
setClientId
in interfaceSecureGrant
- Parameters:
clientId
- The client id
-
setClientSecret
Description copied from interface:SecureGrant
Sets the client secret in the grant.- Specified by:
setClientSecret
in interfaceSecureGrant
- Parameters:
clientSecret
- The client secret
-