Class UIDatasetSupport
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.support.UIDatasetSupport
-
@RestController @RequestMapping("/api") public class UIDatasetSupport extends ObjectREST controller for processing PKCS10 requests and Certificates.
-
-
Constructor Summary
Constructors Constructor Description UIDatasetSupport(CAConnectorConfigRepository caConnConfRepo, CaConnectorAdapter caConnectorAdapter, PipelineRepository pipelineRepo, PipelineUtil pipelineUtil, ProtectedContentUtil protUtil, UserPreferenceRepository userPreferenceRepository, UserService userService, CertificateSelectionUtil certificateSelectionAttributeList, CryptoConfiguration cryptoConfiguration, UserUtil userUtil, ClientAuthConfig clientAuthConfig, boolean autoSSOLogin, String certificateStoreIsolation, String[] ssoProvider, String samlEntityBaseUrl, String[] scndFactorTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PipelineView>activeWeb()GET /pipeline/activeWeb: get all active pipelines for web upload.List<CAConnectorConfig>getAllCAConnectorConfigs()GET /ca-connector-configs/cert-generators: get all elements able to create a certificate.CAStatusgetCAConnectorStatus(@Valid CAConnectorConfig cAConnectorConfig)POST /ca-connector-configs/getStatus: get all elements able to create a certificate.org.springframework.http.ResponseEntity<List<String>>getCertificateSelectionAttributes()org.springframework.http.ResponseEntity<CertificateFilterList>getFilterList(String name)GET userProperties/{name}: get user properties for the given name and the logged-in user.UIConfigViewgetUIConfig()GET /ui/config: get all ui and crypto configurations.org.springframework.http.ResponseEntity<UserPreference>getUserProperties(String name)GET userProperties/{name}: get user properties for the given name and the logged-in user.List<PipelineView>getWebPipelines()GET /pipeline/getWebPipelines: get all pipelines for web upload.org.springframework.http.ResponseEntity<UserPreference>putUserProperties(String name, CertificateFilterList filterList)PUT userProperties/filterList/{name}: put the filter list settings for this user into his properties.
-
-
-
Constructor Detail
-
UIDatasetSupport
public UIDatasetSupport(CAConnectorConfigRepository caConnConfRepo, CaConnectorAdapter caConnectorAdapter, PipelineRepository pipelineRepo, PipelineUtil pipelineUtil, ProtectedContentUtil protUtil, UserPreferenceRepository userPreferenceRepository, UserService userService, CertificateSelectionUtil certificateSelectionAttributeList, CryptoConfiguration cryptoConfiguration, UserUtil userUtil, ClientAuthConfig clientAuthConfig, @Value("${ca3s.ui.sso.autologin:false}") boolean autoSSOLogin, @Value("${ca3s.ui.certificate-store.isolation:none}") String certificateStoreIsolation, @Value("${ca3s.ui.sso.provider:}") String[] ssoProvider, @Value("${ca3s.saml.entity.base-url:}") String samlEntityBaseUrl, @Value("${ca3s.ui.login.scnd-factor:CLIENT_AUTH}") String[] scndFactorTypes)
-
-
Method Detail
-
getUIConfig
@GetMapping("/ui/config") @Transactional public UIConfigView getUIConfig()GET /ui/config: get all ui and crypto configurations.- Returns:
- the
UIConfigView.
-
getWebPipelines
@GetMapping("/pipeline/getWebPipelines") @Transactional public List<PipelineView> getWebPipelines()GET /pipeline/getWebPipelines: get all pipelines for web upload.- Returns:
- the
Pipeline.
-
activeWeb
@GetMapping("/pipeline/activeWeb") @Transactional public List<PipelineView> activeWeb()GET /pipeline/activeWeb: get all active pipelines for web upload.- Returns:
- the
Pipeline.
-
getAllCAConnectorConfigs
@GetMapping("/ca-connector-configs/cert-generators") @PreAuthorize("isAuthenticated()") public List<CAConnectorConfig> getAllCAConnectorConfigs()GET /ca-connector-configs/cert-generators: get all elements able to create a certificate.- Returns:
- the
CAConnectorConfig.
-
getCAConnectorStatus
@PostMapping("/ca-connector-configs/getStatus") @PreAuthorize("isAuthenticated()") public CAStatus getCAConnectorStatus(@Valid @RequestBody @Valid CAConnectorConfig cAConnectorConfig)POST /ca-connector-configs/getStatus: get all elements able to create a certificate.- Parameters:
cAConnectorConfig- CAConnectorConfig- Returns:
- the
CAStatus.
-
getUserProperties
@GetMapping("/userProperties/{name}") public org.springframework.http.ResponseEntity<UserPreference> getUserProperties(@PathVariable String name)GET userProperties/{name}: get user properties for the given name and the logged-in user.- Returns:
- the
UserPreference.
-
getCertificateSelectionAttributes
@GetMapping("/certificateSelectionAttributes") public org.springframework.http.ResponseEntity<List<String>> getCertificateSelectionAttributes()
-
getFilterList
@GetMapping("/userProperties/filterList/{name}") public org.springframework.http.ResponseEntity<CertificateFilterList> getFilterList(@PathVariable String name)GET userProperties/{name}: get user properties for the given name and the logged-in user.- Returns:
- the
UserPreference.
-
putUserProperties
@PutMapping("/userProperties/filterList/{name}") public org.springframework.http.ResponseEntity<UserPreference> putUserProperties(@PathVariable String name, @RequestBody CertificateFilterList filterList)PUT userProperties/filterList/{name}: put the filter list settings for this user into his properties.- Returns:
- the
UserPreference.
-
-