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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetClientId(String clientId) Sets the client id in the grant.voidsetClientSecret(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, valuesMethods 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:SecureGrantSets the client id in the grant.- Specified by:
setClientIdin interfaceSecureGrant- Parameters:
clientId- The client id
-
setClientSecret
Description copied from interface:SecureGrantSets the client secret in the grant.- Specified by:
setClientSecretin interfaceSecureGrant- Parameters:
clientSecret- The client secret
-