Class JAdESEtsiUHeader
java.lang.Object
eu.europa.esig.dss.jades.validation.JAdESEtsiUHeader
- All Implemented Interfaces:
SignatureProperties<EtsiUComponent>,Serializable
Represents the list of components present inside the unprotected 'etsiU' header
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(String headerName, Object value, boolean base64UrlEncoded) Adds a new entry to the 'etsiU' arrayReturns a list of children contained in the elementbooleanisExist()Checks if "unsigned-signature-properties" exists and can be processedvoidremoveComponent(String headerName) Removes the 'etsiU' components with the givenheaderNamebooleanremoveLastComponent(String... headerName) Removes the last 'etsiU' item if the name matches to the givenheaderNamevoidreplaceComponent(EtsiUComponent attribute) Replaces the given attribute within the 'etsiU' header array
-
Constructor Details
-
JAdESEtsiUHeader
The default constructor- Parameters:
jws-JWSsignature
-
-
Method Details
-
isExist
public boolean isExist()Description copied from interface:SignaturePropertiesChecks if "unsigned-signature-properties" exists and can be processed- Specified by:
isExistin interfaceSignatureProperties<EtsiUComponent>- Returns:
- TRUE if the element exists, FALSE otherwise
-
getAttributes
Description copied from interface:SignaturePropertiesReturns a list of children contained in the element- Specified by:
getAttributesin interfaceSignatureProperties<EtsiUComponent>- Returns:
- list of
SignatureAttributes
-
addComponent
Adds a new entry to the 'etsiU' array- Parameters:
headerName-Stringrepresenting the name of the 'etsiU' entryvalue- represents a value of the 'etsiU' entrybase64UrlEncoded- defines if the entry shall be incorporated in its corresponding base64url representation
-
removeComponent
Removes the 'etsiU' components with the givenheaderName- Parameters:
headerName- of the 'etsiU' entry to remove
-
removeLastComponent
Removes the last 'etsiU' item if the name matches to the givenheaderName- Parameters:
headerName- of the 'etsiU' entry to remove- Returns:
- boolean value whether the component has been removed
-
replaceComponent
Replaces the given attribute within the 'etsiU' header array- Parameters:
attribute-EtsiUComponentto replace
-