use of org.opensmartgridplatform.ws.schema.core.secret.management.SecretTypes in project open-smart-grid-platform by OSGP.
the class SecretManagementEndpoint method getNewSecrets.
public GetNewSecretsResponse getNewSecrets(final GetNewSecretsRequest request) throws OsgpException {
final GetNewSecretsResponse response = new GetNewSecretsResponse();
final SecretTypes soapSecretTypes = request.getSecretTypes();
final List<SecretType> secretTypeList = this.converter.convertToSecretTypes(soapSecretTypes);
final List<TypedSecret> typedSecrets = this.secretManagementService.retrieveNewSecrets(request.getDeviceId(), secretTypeList);
final TypedSecrets soapTypedSecrets = this.converter.convertToSoapTypedSecrets(typedSecrets);
response.setTypedSecrets(soapTypedSecrets);
return response;
}
use of org.opensmartgridplatform.ws.schema.core.secret.management.SecretTypes in project open-smart-grid-platform by OSGP.
the class SecretManagementEndpoint method getSecrets.
public GetSecretsResponse getSecrets(final GetSecretsRequest request) throws OsgpException {
final GetSecretsResponse response = new GetSecretsResponse();
final SecretTypes soapSecretTypes = request.getSecretTypes();
final List<SecretType> secretTypeList = this.converter.convertToSecretTypes(soapSecretTypes);
final List<TypedSecret> typedSecrets = this.secretManagementService.retrieveSecrets(request.getDeviceId(), secretTypeList);
final TypedSecrets soapTypedSecrets = this.converter.convertToSoapTypedSecrets(typedSecrets);
response.setTypedSecrets(soapTypedSecrets);
return response;
}
use of org.opensmartgridplatform.ws.schema.core.secret.management.SecretTypes in project open-smart-grid-platform by OSGP.
the class SecretManagementEndpoint method activateSecrets.
public ActivateSecretsResponse activateSecrets(final ActivateSecretsRequest request) throws OsgpException {
final SecretTypes soapSecretTypes = request.getSecretTypes();
this.secretManagementService.activateNewSecrets(request.getDeviceId(), this.converter.convertToSecretTypes(soapSecretTypes));
return new ActivateSecretsResponse();
}
Aggregations