@Immutable public final class JOSEObjectType extends Object implements net.minidev.json.JSONAware, Serializable
typ
header parameter in unsecured,
JSON Web Signature (JWS) and JSON Web Encryption (JWE) objects. This class
is immutable.
Includes constants for the following standard types:
Additional types can be defined using the constructor.
Modifier and Type | Field and Description |
---|---|
static JOSEObjectType |
JOSE
Compact encoded JOSE object type.
|
static JOSEObjectType |
JOSE_JSON
JSON-encoded JOSE object type..
|
static JOSEObjectType |
JWT
JSON Web Token (JWT) object type.
|
Constructor and Description |
---|
JOSEObjectType(String type)
Creates a new JOSE object type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Overrides
Object.equals() . |
String |
getType()
Gets the JOSE object type.
|
int |
hashCode()
Overrides
Object.hashCode() . |
String |
toJSONString()
Returns the JSON string representation of this JOSE object type.
|
String |
toString()
Returns the string representation of this JOSE object type.
|
public static final JOSEObjectType JOSE
public static final JOSEObjectType JOSE_JSON
public static final JOSEObjectType JWT
public JOSEObjectType(String type)
type
- The object type. Must not be null
.public int hashCode()
Object.hashCode()
.public String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
Copyright © 2017 Connect2id Ltd.. All rights reserved.