public class SvmServicesWs extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SvmServicesWs.ErrorCodes
Class with all possible error codes listed.
|
static class |
SvmServicesWs.VerificationWSFault
Own exception class for the soap verification interface.
|
Constructor and Description |
---|
SvmServicesWs() |
Modifier and Type | Method and Description |
---|---|
List<byte[]> |
getCertificates(String userId,
com.kobil.ssms.kernel.presentation.b2b.RangeInput rangeInput,
com.kobil.ssms.kernel.logic.pagination.OrderInput orderInput,
Holder<com.kobil.ssms.kernel.presentation.b2b.Pagination> pagination)
returns the user certificates that are linked to the given userId in DER encoded form.
|
Calendar |
verifyKnownUser(byte[] pkcs7,
byte[] data,
Calendar timeOfVerification)
Verifies the signature of attached or detached pkcs7 document with optional
validity check for known user.
|
Calendar |
verifyKnownUserForTrustAnchor(byte[] pkcs7,
byte[] data,
Calendar timeOfVerification,
String[] validRootCANames)
Verifies the signature of attached or detached pkcs7 document with optional
validity check for known user.
|
Calendar |
verifyUser(byte[] pkcs7,
byte[] data,
Calendar timeOfVerification)
Verifies the signature of attached or detached pkcs7 document with optional
validity check for unknown user.
|
Calendar |
verifyUserForTrustAnchor(byte[] pkcs7,
byte[] data,
Calendar timeOfVerification,
String[] validRootCANames)
Verifies the signature of a attached or detached pkcs7 document with optional
validity check for unknown user.
|
public Calendar verifyUser(byte[] pkcs7, byte[] data, Calendar timeOfVerification) throws SvmServicesWs.VerificationWSFault
pkcs7
- The signed PKCS#7 data.data
- Null or detached document data.timeOfVerification
- Null or validation reference time (verify the signature for this date).SvmServicesWs.VerificationWSFault
- SvmServicesWs.ErrorCodes.UNSPECIFIED_ERROR
if an internal error occurred.
SvmServicesWs.ErrorCodes.PKCS7_INVALID
if the pkcs7 is null.
SvmServicesWs.ErrorCodes.VERIFICATION_ERROR
if the verification failed.public Calendar verifyKnownUser(byte[] pkcs7, byte[] data, Calendar timeOfVerification) throws SvmServicesWs.VerificationWSFault
pkcs7
- The signed PKCS#7 data.data
- Null or detached document data.timeOfVerification
- Null or validation reference time (verify the signature for this date).SvmServicesWs.VerificationWSFault
- SvmServicesWs.ErrorCodes.UNSPECIFIED_ERROR
if an internal error occurred.
SvmServicesWs.ErrorCodes.PKCS7_INVALID
if the pkcs7 is null.
SvmServicesWs.ErrorCodes.VERIFICATION_ERROR
if the verification failed.public Calendar verifyUserForTrustAnchor(byte[] pkcs7, byte[] data, Calendar timeOfVerification, String[] validRootCANames) throws SvmServicesWs.VerificationWSFault
pkcs7
- The signed PKCS#7 data.data
- Null or detached document data.timeOfVerification
- Null or validation reference time (verify the signature for this date).validRootCANames
- The value root certificate names.
Please note that the input parameter is a list of RFC2253-
formatted names.SvmServicesWs.VerificationWSFault
- SvmServicesWs.ErrorCodes.UNSPECIFIED_ERROR
if an internal error occurred.
SvmServicesWs.ErrorCodes.PKCS7_INVALID
if the pkcs7 is null.
SvmServicesWs.ErrorCodes.VERIFICATION_ERROR
if the verification failed.
SvmServicesWs.ErrorCodes.VALID_ROOT_CA_NAMES_INVALID
if the valid root ca names are null or empty.public Calendar verifyKnownUserForTrustAnchor(byte[] pkcs7, byte[] data, Calendar timeOfVerification, String[] validRootCANames) throws SvmServicesWs.VerificationWSFault
pkcs7
- The signed PKCS#7 data.data
- Null or detached document data.timeOfVerification
- Null or validation reference time (verify the signature for this date).validRootCANames
- The value root certificate names.
Please note that the input parameter is a list of RFC2253-
formatted names.SvmServicesWs.VerificationWSFault
- SvmServicesWs.ErrorCodes.UNSPECIFIED_ERROR
if an internal error occurred.
SvmServicesWs.ErrorCodes.PKCS7_INVALID
if the pkcs7 is null.
SvmServicesWs.ErrorCodes.VERIFICATION_ERROR
if the verification failed.
SvmServicesWs.ErrorCodes.VALID_ROOT_CA_NAMES_INVALID
if the valid root ca names are null or empty.public List<byte[]> getCertificates(String userId, com.kobil.ssms.kernel.presentation.b2b.RangeInput rangeInput, com.kobil.ssms.kernel.logic.pagination.OrderInput orderInput, Holder<com.kobil.ssms.kernel.presentation.b2b.Pagination> pagination) throws SvmServicesWs.VerificationWSFault
userId
- rangeInput
- - RangeInput object with information about range with "from" and "limit" values orderInput
- - OrderInput object with information about sorting field name and direction pagination
- - Holder for Pagination with information about range and order.
range is an object with "from", "limit" and "moreExist" values SvmServicesWs.VerificationWSFault
- SvmServicesWs.ErrorCodes.UNSPECIFIED_ERROR
if an internal error occurred.
SvmServicesWs.ErrorCodes.INVALID_PARAMETER
if no userId was provided
SvmServicesWs.ErrorCodes.USER_DOES_NOT_EXIST
if no user with the given userId exists.Copyright © 2022 KOBIL Systems GmbH. All rights reserved.