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.util.Set<java.lang.String> |
getCriticalHeaders()
Gets the critical headers (
crit ) parameter. |
java.lang.Object |
getCustomParameter(java.lang.String name)
Gets a custom (non-registered) parameter.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomParameters()
Gets the custom (non-registered) parameters.
|
java.util.Set<java.lang.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.
|
java.lang.String |
toString()
Returns a JSON string 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.util.Set<java.lang.String> getCriticalHeaders()
crit
) parameter.null
if none.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()
java.lang.String toString()
toString
in class java.lang.Object
Base64URL toBase64URL()
Copyright © 2014 Connect2id Ltd.. All Rights Reserved.