public interface ReadOnlyHeader
header
.Modifier and Type | Method and Description |
---|---|
Algorithm |
getAlgorithm()
Gets the algorithm (
alg ) parameter. |
java.lang.String |
getContentType()
Gets the content type (
cty ) parameter. |
java.lang.Object |
getCustomParameter(java.lang.String name)
Gets a custom (non-reserved) parameter.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomParameters()
Gets the custom (non-reserved) parameters.
|
java.util.Set<java.lang.String> |
getIncludedParameters()
Gets the names of all included parameters (reserved 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.
|
Algorithm getAlgorithm()
alg
) parameter.JOSEObjectType getType()
typ
) parameter.null
if not specified.java.lang.String getContentType()
cty
) parameter.null
if not specified.java.lang.Object getCustomParameter(java.lang.String name)
name
- The name of the custom parameter. Must not be
null
.null
if not specified.java.util.Map<java.lang.String,java.lang.Object> getCustomParameters()
java.util.Set<java.lang.String> getIncludedParameters()
net.minidev.json.JSONObject toJSONObject()
Base64URL toBase64URL()
Copyright © 2013 NimbusDS. All Rights Reserved.