public interface ReadOnlyHeader
header.| Modifier and Type | Method and Description |
|---|---|
Algorithm |
getAlgorithm()
Gets the algorithm (
alg) parameter. |
String |
getContentType()
Gets the content type (
cty) parameter. |
Set<String> |
getCriticalHeaders()
Gets the critical headers (
crit) parameter. |
Object |
getCustomParameter(String name)
Gets a custom (non-registered) parameter.
|
Map<String,Object> |
getCustomParameters()
Gets the custom (non-registered) parameters.
|
Set<String> |
getIncludedParameters()
Gets the names of all included parameters (registered and custom) in
the header instance.
|
JOSEObjectType |
getType()
Gets the type (
typ) parameter. |
Base64URL |
toBase64URL()
Returns a Base64URL representation of the header.
|
net.minidev.json.JSONObject |
toJSONObject()
Returns a JSON object representation of the header.
|
String |
toString()
Returns a JSON string representation of the header.
|
Algorithm getAlgorithm()
alg) parameter.JOSEObjectType getType()
typ) parameter.null if not specified.String getContentType()
cty) parameter.null if not specified.Set<String> getCriticalHeaders()
crit) parameter.null if none.Object getCustomParameter(String name)
name - The name of the custom parameter. Must not be
null.null if not specified.Map<String,Object> getCustomParameters()
Set<String> getIncludedParameters()
net.minidev.json.JSONObject toJSONObject()
String toString()
Base64URL toBase64URL()
Copyright © 2014 Connect2id Ltd.. All Rights Reserved.