public final class SignatureFormatDetectorASiC extends java.lang.Object implements ISignatureFormatDetector
Class that represents a format checker for Associated Signature Containers (ASiC).
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASIC_S_MIME_TYPE
Constant attribute that represents the mime type of the ZIP file to identify the ASiC-S format.
|
static java.lang.String |
META_INF_FOLDER
Constant attribute that identifies the root for the signatures and manifests contained inside of an ASiC signature.
|
static java.lang.String |
MIME_TYPE_FILE
Constant attribute that identifies the name of the file with the mime type contained inside of the ZIP file.
|
static java.lang.String |
NAME_SIGNATURE_CADES_B
Constant attribute that represents the name of generated CAdES Baseline signature.
|
static java.lang.String |
NAME_SIGNATURE_XADES_B
Constant attribute that represents the name of generated XAdES Baseline signature.
|
CADES_BASIC_FORMAT, FORMAT_ASIC_S_B_LEVEL, FORMAT_ASIC_S_LT_LEVEL, FORMAT_ASIC_S_LTA_LEVEL, FORMAT_ASIC_S_T_LEVEL, FORMAT_CADES_A, FORMAT_CADES_B_LEVEL, FORMAT_CADES_BES, FORMAT_CADES_C, FORMAT_CADES_EPES, FORMAT_CADES_LT_LEVEL, FORMAT_CADES_LTA_LEVEL, FORMAT_CADES_T, FORMAT_CADES_T_LEVEL, FORMAT_CADES_X1, FORMAT_CADES_X2, FORMAT_CADES_XL1, FORMAT_CADES_XL2, FORMAT_CMS, FORMAT_CMS_T, FORMAT_PADES_B_LEVEL, FORMAT_PADES_BASIC, FORMAT_PADES_BES, FORMAT_PADES_EPES, FORMAT_PADES_LT_LEVEL, FORMAT_PADES_LTA_LEVEL, FORMAT_PADES_LTV, FORMAT_PADES_T_LEVEL, FORMAT_PDF, FORMAT_UNRECOGNIZED, FORMAT_XADES_A, FORMAT_XADES_B_LEVEL, FORMAT_XADES_BES, FORMAT_XADES_C, FORMAT_XADES_EPES, FORMAT_XADES_LT_LEVEL, FORMAT_XADES_LTA_LEVEL, FORMAT_XADES_T, FORMAT_XADES_T_LEVEL, FORMAT_XADES_X1, FORMAT_XADES_X2, FORMAT_XADES_XL1, FORMAT_XADES_XL2, PKCS7_BASIC_FORMAT| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getSignatureFormat(byte[] signature)
Method that obtains the format of an ASiC signature.
|
static boolean |
isCAdESEntry(java.lang.String entryName)
Method that indicates if the name of an entry of a ZIP file has the format:
/META-INF/signature.p7s. |
static boolean |
isXAdESEntry(java.lang.String entryName)
Method that indicates if the name of an entry of a ZIP file has the format:
/META-INF/signature.xml. |
public static final java.lang.String META_INF_FOLDER
public static final java.lang.String MIME_TYPE_FILE
public static final java.lang.String ASIC_S_MIME_TYPE
public static final java.lang.String NAME_SIGNATURE_CADES_B
public static final java.lang.String NAME_SIGNATURE_XADES_B
public static java.lang.String getSignatureFormat(byte[] signature)
signature - Parameter that represents the ASiC signature as a ZIP file.public static boolean isXAdESEntry(java.lang.String entryName)
/META-INF/signature.xml.entryName - Parameter that represents the name of the entry./META-INF/signature.xml (true) or not (false).public static boolean isCAdESEntry(java.lang.String entryName)
/META-INF/signature.p7s.entryName - Parameter that represents the name of the entry./META-INF/signature.p7s (true) or not (false).