Package io.jans.as.client.model
Class SoftwareStatement
java.lang.Object
io.jans.as.client.model.SoftwareStatement
- Version:
- December 4, 2018
- Author:
- Javier Rojas Blum
-
Constructor Summary
ConstructorsConstructorDescriptionSoftwareStatement
(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider) SoftwareStatement
(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String sharedKey, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
getKeyId()
Identifier of the key used to sign this state token at the issuer.io.jans.as.model.crypto.signature.SignatureAlgorithm
protected org.json.JSONObject
void
setClaims
(org.json.JSONObject claims) void
Identifier of the key used to sign this state token at the issuer.void
setSignatureAlgorithm
(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm)
-
Constructor Details
-
SoftwareStatement
public SoftwareStatement(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider) -
SoftwareStatement
public SoftwareStatement(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String sharedKey, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
-
-
Method Details
-
getSignatureAlgorithm
public io.jans.as.model.crypto.signature.SignatureAlgorithm getSignatureAlgorithm() -
setSignatureAlgorithm
public void setSignatureAlgorithm(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm) -
getKeyId
Identifier of the key used to sign this state token at the issuer. Identifier of the key used to encrypt this JWT state token at the issuer.- Returns:
- The key identifier
-
setKeyId
Identifier of the key used to sign this state token at the issuer. Identifier of the key used to encrypt this JWT state token at the issuer.- Parameters:
keyId
- The key identifier
-
getClaims
public org.json.JSONObject getClaims() -
setClaims
public void setClaims(org.json.JSONObject claims) -
getEncodedJwt
- Throws:
Exception
-
headerToJSONObject
protected org.json.JSONObject headerToJSONObject() throws io.jans.as.model.exception.InvalidJwtException- Throws:
io.jans.as.model.exception.InvalidJwtException
-