MCPcopy Create free account
hub / github.com/jwtk/jjwt / put

Method put

impl/src/main/java/io/jsonwebtoken/impl/ParameterMap.java:135–140  ·  view source on GitHub ↗

Convenience method to put a value for an idiomatic param. @param param the param representing the property name to set @param value the value to set @return the previous value for the param, or null if there was no previous value @since 0.12.0

(Parameter<T> param, Object value)

Source from the content-addressed store, hash-verified

133 * @since 0.12.0
134 */
135 protected final <T> Object put(Parameter<T> param, Object value) {
136 assertMutable();
137 Assert.notNull(param, "Parameter cannot be null.");
138 Assert.hasText(param.getId(), "Parameter id cannot be null or empty.");
139 return apply(param, value);
140 }
141
142 @Override
143 public final Object put(String name, Object value) {

Callers 15

putAllMethod · 0.95
nullSafePutMethod · 0.45
applyMethod · 0.45
sanitizeCritMethod · 0.45
x509UrlMethod · 0.45
x509ChainMethod · 0.45
x509Sha1ThumbprintMethod · 0.45
x509Sha256ThumbprintMethod · 0.45
compactMethod · 0.45
encryptMethod · 0.45
verifySignatureMethod · 0.45
andMethod · 0.45

Calls 8

assertMutableMethod · 0.95
notNullMethod · 0.95
hasTextMethod · 0.95
applyMethod · 0.95
cleanMethod · 0.95
nullSafePutMethod · 0.95
getIdMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected