|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.jose.Algorithm
@Immutable public class Algorithm
The base class for algorithm names, with optional implementation requirement. This class is immutable.
Includes constants for the following standard algorithm names:
Field Summary | |
---|---|
static Algorithm |
NONE
No algorithm (plain JOSE object without signature / encryption). |
Constructor Summary | |
---|---|
Algorithm(java.lang.String name)
Creates a new JOSE algorithm name. |
|
Algorithm(java.lang.String name,
Requirement req)
Creates a new JOSE algorithm name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Overrides Object.equals() . |
java.lang.String |
getName()
Gets the name of this algorithm. |
Requirement |
getRequirement()
Gets the implementation requirement of this algorithm. |
int |
hashCode()
Overrides Object.hashCode() . |
java.lang.String |
toJSONString()
Returns the JSON string representation of this algorithm. |
java.lang.String |
toString()
Returns the string representation of this algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Algorithm NONE
Constructor Detail |
---|
public Algorithm(java.lang.String name, Requirement req)
name
- The algorithm name. Must not be null
.req
- The implementation requirement, null
if not
known.public Algorithm(java.lang.String name)
name
- The algorithm name. Must not be null
.Method Detail |
---|
public java.lang.String getName()
public Requirement getRequirement()
null
if not known.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
getName()
public java.lang.String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |