@Immutable public final class JOSEObjectType extends java.lang.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(java.lang.String type)
Creates a new JOSE object type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals() . |
java.lang.String |
getType()
Gets the JOSE object type.
|
int |
hashCode()
Overrides
Object.hashCode() . |
java.lang.String |
toJSONString()
Returns the JSON string representation of this JOSE object type.
|
java.lang.String |
toString()
Returns the string representation of this JOSE object type.
|
public static final JOSEObjectType JWS
public static final JOSEObjectType JWE
public JOSEObjectType(java.lang.String type)
type
- The object type. Must not be null
.public java.lang.String getType()
public int hashCode()
Object.hashCode()
.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
Object.equals()
.equals
in class java.lang.Object
object
- The object to compare to.true
if the objects have the same value, otherwise
false
.public java.lang.String toString()
toString
in class java.lang.Object
getType()
public java.lang.String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
Copyright © 2014 Connect2id Ltd.. All Rights Reserved.