public class JWSBuilder extends Object
Modifier and Type | Class and Description |
---|---|
class |
JWSBuilder.EncodingBuilder |
Constructor and Description |
---|
JWSBuilder() |
Modifier and Type | Method and Description |
---|---|
JWSBuilder.EncodingBuilder |
content(byte[] bytes) |
JWSBuilder |
contentType(String type) |
protected void |
encode(Algorithm alg,
byte[] data,
StringBuilder encoding) |
protected void |
encode(String sigAlgName,
byte[] data,
StringBuilder encoding) |
protected String |
encodeAll(StringBuilder encoding,
byte[] signature) |
protected String |
encodeHeader(String sigAlgName) |
JWSBuilder.EncodingBuilder |
jsonContent(Object object) |
JWSBuilder |
kid(String kid) |
protected byte[] |
marshalContent() |
JWSBuilder |
type(String type) |
public JWSBuilder type(String type)
public JWSBuilder kid(String kid)
public JWSBuilder contentType(String type)
public JWSBuilder.EncodingBuilder content(byte[] bytes)
public JWSBuilder.EncodingBuilder jsonContent(Object object)
protected String encodeAll(StringBuilder encoding, byte[] signature)
protected void encode(Algorithm alg, byte[] data, StringBuilder encoding)
protected void encode(String sigAlgName, byte[] data, StringBuilder encoding)
protected byte[] marshalContent()
Copyright © 2019 JBoss by Red Hat. All rights reserved.