-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for previous behaviour use P7MLegacyValidator
- Loading branch information
Showing
4 changed files
with
64 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
fj-doc-val-p7m/src/main/java/org/fugerit/java/doc/val/p7m/P7MLegacyValidator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.fugerit.java.doc.val.p7m; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.fugerit.java.doc.val.core.DocTypeValidationResult; | ||
import org.fugerit.java.doc.val.core.basic.AbstractDocTypeValidator; | ||
|
||
import java.io.InputStream; | ||
|
||
@Slf4j | ||
public class P7MLegacyValidator extends AbstractDocTypeValidator { | ||
|
||
public static final String EXTENSION = "P7M"; | ||
|
||
public static final String MIME_TYPE = "application/pkcs7-mime"; | ||
|
||
public P7MLegacyValidator() { | ||
super( MIME_TYPE, EXTENSION ); | ||
} | ||
|
||
@Override | ||
public DocTypeValidationResult validate(InputStream is) { | ||
return this.validationHelper(() -> P7MUtils.extractContent( is ) ); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters