Class JAdESExtensionBuilder
java.lang.Object
eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
- Direct Known Subclasses:
JAdESCounterSignatureBuilder,JAdESLevelBaselineT,JAdESSignaturePolicyStoreBuilder
public abstract class JAdESExtensionBuilder extends Object
The abstract class allowing the signature extension
-
Constructor Summary
Constructors Constructor Description JAdESExtensionBuilder() -
Method Summary
Modifier and Type Method Description protected voidassertEtsiUComponentsConsistent(JWS jws, boolean isBase64UrlEtsiUComponents)Checks if the type of etsiU components is consistentprotected voidassertIsJSONSerializationType(JWSSerializationType jwsSerializationType)Checks if the given signature document type is allowed for the extensionprotected JWSJsonSerializationObjecttoJWSJsonSerializationObjectToExtend(DSSDocument document)Parses the provideddocumenttoJWSJsonSerializationObjectThrows an exception if the document cannot be extended
-
Constructor Details
-
JAdESExtensionBuilder
public JAdESExtensionBuilder()
-
-
Method Details
-
assertEtsiUComponentsConsistent
Checks if the type of etsiU components is consistent- Parameters:
jws-JWSto checkisBase64UrlEtsiUComponents- if the new component shall be base64url encoded
-
toJWSJsonSerializationObjectToExtend
Parses the provideddocumenttoJWSJsonSerializationObjectThrows an exception if the document cannot be extended- Parameters:
document-DSSDocumentoriginal document- Returns:
JWSJsonSerializationObject
-
assertIsJSONSerializationType
Checks if the given signature document type is allowed for the extension- Parameters:
jwsSerializationType-JWSSerializationTypeto check
-