java.lang.Object
eu.europa.esig.dss.jades.validation.JAdESEtsiUHeader
- All Implemented Interfaces:
eu.europa.esig.dss.spi.validation.SignatureProperties<EtsiUComponent>,Serializable
public class JAdESEtsiUHeader
extends Object
implements eu.europa.esig.dss.spi.validation.SignatureProperties<EtsiUComponent>
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' arraybooleanisExist()voidremoveComponent(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()- Specified by:
isExistin interfaceeu.europa.esig.dss.spi.validation.SignatureProperties<EtsiUComponent>
-
getAttributes
- Specified by:
getAttributesin interfaceeu.europa.esig.dss.spi.validation.SignatureProperties<EtsiUComponent>
-
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
-