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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(String headerName, Object value, boolean base64UrlEncoded) Adds a new entry to the 'etsiU' arrayReturns a list of children contained in the elementboolean
isExist()
Checks if "unsigned-signature-properties" exists and can be processedvoid
removeComponent
(String headerName) Removes the 'etsiU' components with the givenheaderName
void
removeLastComponent
(String headerName) Removes the last 'etsiU' item if the name matches to the givenheaderName
void
replaceComponent
(EtsiUComponent attribute) Replaces the given attribute within the 'etsiU' header array
-
Constructor Details
-
JAdESEtsiUHeader
The default constructor- Parameters:
jws
-JWS
signature
-
-
Method Details
-
isExist
public boolean isExist()Description copied from interface:SignatureProperties
Checks if "unsigned-signature-properties" exists and can be processed- Specified by:
isExist
in interfaceSignatureProperties<EtsiUComponent>
- Returns:
- TRUE if the element exists, FALSE otherwise
-
getAttributes
Description copied from interface:SignatureProperties
Returns a list of children contained in the element- Specified by:
getAttributes
in interfaceSignatureProperties<EtsiUComponent>
- Returns:
- list of
SignatureAttribute
s
-
addComponent
Adds a new entry to the 'etsiU' array- Parameters:
headerName
-String
representing 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
-
replaceComponent
Replaces the given attribute within the 'etsiU' header array- Parameters:
attribute
-EtsiUComponent
to replace
-