Skip to content

Commit

Permalink
Move revocation.enabled to DgcProperties.
Browse files Browse the repository at this point in the history
  • Loading branch information
karaeth committed Nov 30, 2023
1 parent cd72074 commit 42e54c0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public static class HeaderFields {
@Setter
public static class Revocation {
private int deleteThreshold = 14;
private Boolean enabled;
}

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
@RequiredArgsConstructor
@Validated
@Slf4j
@ConditionalOnProperty(name = "revocation-list.controller.enabled", havingValue = "true")
@ConditionalOnProperty(name = "dgc.revocation.enabled", havingValue = "true")
public class CertificateRevocationListController {

private final RevocationListService revocationListService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@Service
@RequiredArgsConstructor
@Slf4j
@ConditionalOnProperty(name = "revocation-list.controller.enabled", havingValue = "true")
@ConditionalOnProperty(name = "dgc.revocation.enabled", havingValue = "true")
public class RevocationListCleanUpService {

private final RevocationBatchRepository revocationBatchRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
@Service
@Slf4j
@RequiredArgsConstructor
@ConditionalOnProperty(name = "revocation-list.controller.enabled", havingValue = "true")
@ConditionalOnProperty(name = "dgc.revocation.enabled", havingValue = "true")
public class RevocationListService {

private static final int MAX_BATCH_LIST_SIZE = 1000;
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ dgc:
pem: X-SSL-Client-Cert
revocation:
delete-threshold: 14
enabled: false
signer-information:
delete-threshold: 14
trustedCertificates:
Expand Down Expand Up @@ -104,10 +105,7 @@ dgc:
apiKey: 0a0a0a0a-0a0a-0a0a-0a0a-0a0a0a0a0a0a
url: https://api.cloudmersive.com
enabled: false

springdoc:
api-docs:
enabled: false

revocation-list:
controller:
enabled: false

0 comments on commit 42e54c0

Please sign in to comment.