@Immutable public final class UnprotectedHeader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UnprotectedHeader.Builder
Builder for constructing an unprotected JWS or JWE header.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getIncludedParams()
Gets the names of the included parameters in this unprotected
header.
|
String |
getKeyID()
Gets the key ID (
kid ) parameter. |
Object |
getParam(String name)
Gets a parameter.
|
static UnprotectedHeader |
parse(Map<String,Object> jsonObject)
Parses an unprotected header from the specified JSON object.
|
Map<String,Object> |
toJSONObject()
Returns a JSON object representation of this unprotected header.
|
public String getKeyID()
kid
) parameter.null
if not specified.public Object getParam(String name)
name
- The name of the parameter. Must not be null
.null
if not specified.public Set<String> getIncludedParams()
public Map<String,Object> toJSONObject()
public static UnprotectedHeader parse(Map<String,Object> jsonObject) throws ParseException
jsonObject
- The JSON object, null
if not specified.null
.ParseException
- If the JSON object couldn't be parsed to a
valid unprotected header.Copyright © 2021 Connect2id Ltd.. All rights reserved.