public static class SADFactory.SADBuilder extends Object
Modifier and Type | Method and Description |
---|---|
SADFactory.SADBuilder |
audience(String audience)
Assigns the entityID of the Signature Service which is the recipient of this SAD.
|
String |
buildJwt()
Builds a SAD, creates a JWT, signs it and returns its serialization.
|
SAD |
buildSAD()
Builds a SAD.
|
SADFactory.SADBuilder |
inResponseTo(String irt)
Assigns the ID of the
SADRequest message that requested this SAD. |
SADFactory.SADBuilder |
jwtId(String jwtId)
Assigns the unique identifier of this JWT.
|
SADFactory.SADBuilder |
loa(String loa)
Assigns the URI identifier of the level of assurance (LoA) used to authenticate the signer.
|
SADFactory.SADBuilder |
numberOfDocuments(int docs)
Assigns the number of documents to be signed in the associated sign request.
|
SADFactory.SADBuilder |
requestID(String requestID)
Assigns the ID of the Sign Request associated with this SAD.
|
SADFactory.SADBuilder |
subject(String subject)
Assigns the attribute value of the signer's unique identifier attribute.
|
SADFactory.SADBuilder |
version(SADVersion version)
Assigns the version of the SAD claim.
|
public SAD buildSAD()
public String buildJwt() throws IOException, SignatureException
IOException
- for JSON processing errorsSignatureException
- for signature errorspublic SADFactory.SADBuilder subject(String subject)
subject
- the user IDpublic SADFactory.SADBuilder audience(String audience)
audience
- the entityID of the recipientpublic SADFactory.SADBuilder jwtId(String jwtId)
jwtId
- JWT IDpublic SADFactory.SADBuilder version(SADVersion version)
version
- the versionpublic SADFactory.SADBuilder inResponseTo(String irt)
SADRequest
message that requested this SAD.irt
- ID of corresponding SADRequest
public SADFactory.SADBuilder loa(String loa)
loa
- LoA URIpublic SADFactory.SADBuilder requestID(String requestID)
requestID
- SignRequest IDpublic SADFactory.SADBuilder numberOfDocuments(int docs)
docs
- the number of documents to be signedCopyright © 2018 Litsec AB. All rights reserved.