Skip to content

Commit

Permalink
DD4J-948 Improve code comments and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarendus committed Feb 20, 2024
1 parent 8e857c5 commit 8d0c669
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public enum SignatureLevel {
UNKNOWN,

/*
* Estonian specific profiles
* Estonian-specific profiles
*/
XAdES_BASELINE_LT_TM, XAdES_BASELINE_B_EPES;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,9 +900,11 @@ protected XAdESBaselineRequirementsChecker createBaselineRequirementsChecker() {
}

/**
* Checks the presence of SignatureTimeStamp segment in the signature, what is the proof -T profile existence
* Checks if the T-level is present in the signature.
* In case of a signature with BDOC signature policy, T-level is indicated by the presence of a time-mark-conformant
* OCSP response.
*
* @return
* @return true if the T-level is present, false otherwise
*/
public boolean hasTProfile() {
if (BDocTmSupport.hasBDocTmOcsp(signatureElement, xadesPath)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void checkSignaturePolicyIdentifier(DiagnosticData diagnosticData) {
assertEquals(POLICY_ID, signature.getPolicyId());
assertEquals(POLICY_URL, signature.getPolicyUrl());
}

@Override
protected void checkBLevelValid(DiagnosticData diagnosticData) {
// do nothing
Expand Down

0 comments on commit 8d0c669

Please sign in to comment.