|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nimbusds.jose.util.Base64
@Immutable public class Base64
Base64-encoded object.
| Constructor Summary | |
|---|---|
Base64(String base64)
Creates a new Base64-encoded object. |
|
| Method Summary | |
|---|---|
byte[] |
decode()
Decodes this Base64 object to a byte array. |
static Base64URL |
encode(byte[] bytes)
Base64-encode the specified byte array. |
boolean |
equals(Object object)
Overrides Object.equals(). |
int |
hashCode()
Overrides Object.hashCode(). |
String |
toJSONString()
Returns a JSON string representation of this object. |
String |
toString()
Returns a Base64 string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Base64(String base64)
base64 - The Base64-encoded object value. The value is not
validated for having characters from a Base64
alphabet. Must not be null.| Method Detail |
|---|
public byte[] decode()
public String toJSONString()
toJSONString in interface net.minidev.json.JSONAwarepublic String toString()
toString in class Objectpublic int hashCode()
Object.hashCode().
hashCode in class Objectpublic boolean equals(Object object)
Object.equals().
equals in class Objectobject - The object to compare to.
true if the objects have the same value, otherwise
false.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 | |||||||||