Package org.apache.oltu.jose.jws
Class JWS.Builder
- java.lang.Object
-
- org.apache.oltu.commons.json.CustomizableBuilder<JWS>
-
- org.apache.oltu.jose.jws.JWS.Builder
-
- Enclosing class:
- JWS
public static final class JWS.Builder extends CustomizableBuilder<JWS>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JWS
build()
JWS.Builder
setAlgorithm(java.lang.String algorithm)
JWS.Builder
setContentType(java.lang.String contentType)
JWS.Builder
setCritical(java.lang.String[] critical)
JWS.Builder
setJsonWebKey(java.lang.String jsonWebKey)
JWS.Builder
setJwkSetUrl(java.lang.String jwkSetUrl)
JWS.Builder
setKeyId(java.lang.String keyId)
JWS.Builder
setPayload(java.lang.String payload)
JWS.Builder
setSignature(java.lang.String signature)
JWS.Builder
setType(java.lang.String type)
JWS.Builder
setX509CertificateChain(java.lang.String x509CertificateChain)
JWS.Builder
setX509CertificateThumbprint(java.lang.String x509CertificateThumbprint)
JWS.Builder
setX509url(java.lang.String x509url)
<SK extends SigningKey,VK extends VerifyingKey>
JWS.Buildersign(SignatureMethod<SK,VK> method, SK signingKey)
-
Methods inherited from class org.apache.oltu.commons.json.CustomizableBuilder
setCustomField
-
-
-
-
Method Detail
-
setAlgorithm
public JWS.Builder setAlgorithm(java.lang.String algorithm)
-
setJwkSetUrl
public JWS.Builder setJwkSetUrl(java.lang.String jwkSetUrl)
-
setJsonWebKey
public JWS.Builder setJsonWebKey(java.lang.String jsonWebKey)
-
setX509url
public JWS.Builder setX509url(java.lang.String x509url)
-
setX509CertificateThumbprint
public JWS.Builder setX509CertificateThumbprint(java.lang.String x509CertificateThumbprint)
-
setX509CertificateChain
public JWS.Builder setX509CertificateChain(java.lang.String x509CertificateChain)
-
setKeyId
public JWS.Builder setKeyId(java.lang.String keyId)
-
setType
public JWS.Builder setType(java.lang.String type)
-
setContentType
public JWS.Builder setContentType(java.lang.String contentType)
-
setCritical
public JWS.Builder setCritical(java.lang.String[] critical)
-
setPayload
public JWS.Builder setPayload(java.lang.String payload)
-
setSignature
public JWS.Builder setSignature(java.lang.String signature)
-
sign
public <SK extends SigningKey,VK extends VerifyingKey> JWS.Builder sign(SignatureMethod<SK,VK> method, SK signingKey)
-
build
public JWS build()
- Specified by:
build
in classCustomizableBuilder<JWS>
-
-