public class JSONWebKeys extends HashMap<String,JSONWebKey>
JSONWebKey
objects. This also allows specifying an identifier as the
default to be used for all signing.
Created by Jeff Gaynor
on 1/9/17 at 10:37 AM
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JSONWebKeys(String defaultKeyID) |
Modifier and Type | Method and Description |
---|---|
JSONWebKey |
getDefault() |
String |
getDefaultKeyID()
Get the default key id for this set.
|
boolean |
hasDefaultKey()
test if a default key id has been set for this set.
|
void |
put(JSONWebKey webKey)
Add a key to this set.
|
void |
setDefaultKeyID(String defaultKeyID) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public JSONWebKeys(String defaultKeyID)
public JSONWebKey getDefault()
public boolean hasDefaultKey()
public String getDefaultKeyID()
public void setDefaultKeyID(String defaultKeyID)
public void put(JSONWebKey webKey)
webKey
- Copyright © 2019. All Rights Reserved.