|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nimbusds.jose.JOSEObject
com.nimbusds.jose.PlainObject
@ThreadSafe public class PlainObject
Plaintext (unsecured) JOSE object. This class is thread-safe.
| Constructor Summary | |
|---|---|
PlainObject(Base64URL firstPart,
Base64URL secondPart)
Creates a new plaintext JOSE object with the specified Base64URL-encoded parts. |
|
PlainObject(Payload payload)
Creates a new plaintext JOSE object with a default PlainHeader
and the specified payload. |
|
PlainObject(PlainHeader header,
Payload payload)
Creates a new plaintext JOSE object with the specified header and payload. |
|
| Method Summary | |
|---|---|
ReadOnlyPlainHeader |
getHeader()
Gets the header of this JOSE object. |
static PlainObject |
parse(String s)
Parses a plaintext JOSE object from the specified string in compact format. |
String |
serialize()
Serialises this plaintext JOSE object to its compact format consisting of Base64URL-encoded parts delimited by period ('.') characters. |
| Methods inherited from class com.nimbusds.jose.JOSEObject |
|---|
getParsedParts, getParsedString, getPayload, setParsedParts, setPayload, split |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlainObject(Payload payload)
PlainHeader
and the specified payload.
payload - The payload. Must not be null.
public PlainObject(PlainHeader header,
Payload payload)
header - The plaintext header. Must not be null.payload - The payload. Must not be null.
public PlainObject(Base64URL firstPart,
Base64URL secondPart)
throws ParseException
firstPart - The first part, corresponding to the plaintext header.
Must not be null.secondPart - The second part, corresponding to the payload. Must
not be null.
ParseException - If parsing of the serialised parts failed.| Method Detail |
|---|
public ReadOnlyPlainHeader getHeader()
JOSEObject
getHeader in class JOSEObjectpublic String serialize()
[header-base64url].[payload-base64url].[]
serialize in class JOSEObject
public static PlainObject parse(String s)
throws ParseException
s - The string to parse. Must not be null.
ParseException - If the string couldn't be parsed to a valid
plaintext JOSE object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||