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
JoseException
protected abstract void setCompactSerializationParts(String[] parts) throws JoseException
JoseException
public abstract String getPayload() throws JoseException
JoseException
public abstract void setPayload(String payload)
public abstract Algorithm getAlgorithm() throws InvalidAlgorithmException
InvalidAlgorithmException
public static JsonWebStructure fromCompactSerialization(String cs) throws JoseException
JoseException
public void setCompactSerialization(String compactSerialization) throws JoseException
JoseException
public String getHeader()
protected String getEncodedHeader()
protected void setEncodedHeader(String encodedHeader) throws JoseException
JoseException
public Headers getHeaders()
protected void checkNotEmptyPart(String encodedPart, String partName) throws JoseException
JoseException
public void setAlgorithmHeaderValue(String alg)
public String getAlgorithmHeaderValue()
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.