public abstract class JsonWebStructure extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Base64Url |
base64url |
protected boolean |
doKeyValidation |
protected Headers |
headers |
protected String |
rawCompactSerialization |
| Constructor and Description |
|---|
JsonWebStructure() |
protected Base64Url base64url
protected Headers headers
protected boolean doKeyValidation
protected String rawCompactSerialization
public abstract String getCompactSerialization() throws JoseException
JoseExceptionprotected abstract void setCompactSerializationParts(String[] parts) throws JoseException
JoseExceptionpublic abstract String getPayload() throws JoseException
JoseExceptionpublic abstract void setPayload(String payload)
public abstract Algorithm getAlgorithm() throws InvalidAlgorithmException
InvalidAlgorithmExceptionpublic static JsonWebStructure fromCompactSerialization(String cs) throws JoseException
JoseExceptionpublic void setCompactSerialization(String compactSerialization) throws JoseException
JoseExceptionpublic String getHeader()
protected String getEncodedHeader()
protected void setEncodedHeader(String encodedHeader) throws JoseException
JoseExceptionpublic Headers getHeaders()
protected void checkNotEmptyPart(String encodedPart, String partName) throws JoseException
JoseExceptionpublic void setAlgorithmHeaderValue(String alg)
public String getAlgorithmHeaderValue()
public void setContentTypeHeaderValue(String cty)
public String getContentTypeHeaderValue()
public void setKeyIdHeaderValue(String kid)
public String getKeyIdHeaderValue()
public String getX509CertSha1ThumbprintHeaderValue()
public void setX509CertSha1ThumbprintHeaderValue(String x5t)
public void setX509CertSha1ThumbprintHeaderValue(X509Certificate certificate)
public String getX509CertSha256ThumbprintHeaderValue()
public void setX509CertSha256ThumbprintHeaderValue(String x5tS256)
public void setX509CertSha256ThumbprintHeaderValue(X509Certificate certificate)
public Key getKey()
public void setKey(Key key)
protected void onNewKey()
protected byte[] getIntegrity()
protected void setIntegrity(byte[] integrity)
public boolean isDoKeyValidation()
public void setDoKeyValidation(boolean doKeyValidation)
protected AlgorithmConstraints getAlgorithmConstraints()
public void setAlgorithmConstraints(AlgorithmConstraints algorithmConstraints)
Copyright © 2015. All rights reserved.