@Immutable public final class JOSEObjectType extends Object implements net.minidev.json.JSONAware
typ
header parameter in plain, 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 |
JWE
JWE object type.
|
static JOSEObjectType |
JWS
JWS 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 JWS
public static final JOSEObjectType JWE
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 © 2013 NimbusDS. All Rights Reserved.