|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.jose.util.Base64URL
@Immutable public class Base64URL
Base64URL-encoded object.
Related specifications:
Constructor Summary | |
---|---|
Base64URL(java.lang.String base64URL)
Creates a new Base64URL-encoded object. |
Method Summary | |
---|---|
byte[] |
decode()
Decodes this Base64URL object to a byte array. |
java.lang.String |
decodeToString()
Decodes this Base64URL object to a string. |
static Base64URL |
encode(byte[] bytes)
Base64URL-encode the specified byte array. |
static Base64URL |
encode(java.lang.String text)
Base64URL-encode the specified string. |
boolean |
equals(java.lang.Object object)
Overrides Object.equals() . |
int |
hashCode()
Overrides Object.hashCode() . |
java.lang.String |
toJSONString()
Returns a JSON string representation of this object. |
java.lang.String |
toString()
Returns a Base64URL string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Base64URL(java.lang.String base64URL)
base64URL
- The Base64URL-encoded object value. The value is not
validated for having characters from a Base64URL
alphabet. Must not be null
.Method Detail |
---|
public byte[] decode()
public java.lang.String decodeToString()
public java.lang.String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
public java.lang.String toString()
toString
in class java.lang.Object
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 static Base64URL encode(java.lang.String text)
text
- The string to encode. Must be in the UTF-8 character set
and not null
.
public static Base64URL encode(byte[] bytes)
bytes
- The byte array to encode. Must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |