public class IssuerCertificateManagementWs extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IssuerCertificateManagementWs.CertificateManagementWSFault
Own exception class for the soap interface CertificateManagement.
|
static class |
IssuerCertificateManagementWs.ErrorCodes
Class with all possible error codes listed.
|
Constructor and Description |
---|
IssuerCertificateManagementWs() |
Modifier and Type | Method and Description |
---|---|
boolean |
addCertificate(byte[] derEncodedCertificate)
Adds a DER encoded certificate to the database.
|
byte[][] |
getCertificates(String filter)
Returns a byte array of all certificates, that are matching to the filter.
|
boolean |
lockCertificate(String issuerDN,
BigInteger serialNumber)
Changes an unlocked certificate to the state of locked.
|
boolean |
removeCertificate(String issuerDN,
BigInteger serialNumber)
Removes the certificate from database, referenced by issuerDN
and serial number.
|
boolean |
unlockCertificate(String issuerDN,
BigInteger serialNumber)
Changes a locked certificate to the state of unlocked.
|
public boolean addCertificate(byte[] derEncodedCertificate) throws IssuerCertificateManagementWs.CertificateManagementWSFault
derEncodedCertificate
- The DER encoded certificate.true
if the certificate was added.false
if the certificate already exist.IssuerCertificateManagementWs.CertificateManagementWSFault
- IssuerCertificateManagementWs.ErrorCodes.PERMISSION_DENIED
if the permission is denied.
IssuerCertificateManagementWs.ErrorCodes.CERTIFICATE_INVALID
if the DER encoded certificate is null, empty or not decodable.
IssuerCertificateManagementWs.ErrorCodes.ISSUER_CERTIFICATE_NOT_FOUND
if the issuer certificate cannot be found.
IssuerCertificateManagementWs.ErrorCodes.VERIFICATION_FAILED
if the verification failed.
IssuerCertificateManagementWs.ErrorCodes.GENERAL_ERROR
if an internal error occur.public boolean removeCertificate(String issuerDN, BigInteger serialNumber) throws IssuerCertificateManagementWs.CertificateManagementWSFault
issuerDN
- The issuerDN of the certificate.serialNumber
- The serial number of the certificate.true
if the certificate was removed successfully.false
if the certificate does not exist.IssuerCertificateManagementWs.CertificateManagementWSFault
- IssuerCertificateManagementWs.ErrorCodes.PERMISSION_DENIED
if the permission is denied.
IssuerCertificateManagementWs.ErrorCodes.ISSUERDN_INVALID
if the issuer DN is null or empty.
IssuerCertificateManagementWs.ErrorCodes.SERIAL_NUMBER_INVALID
if the serial number is null.
IssuerCertificateManagementWs.ErrorCodes.GENERAL_ERROR
if an internal error occur.public boolean lockCertificate(String issuerDN, BigInteger serialNumber) throws IssuerCertificateManagementWs.CertificateManagementWSFault
issuerDN
- The issuerDN of the certificate.serialNumber
- The serial number of the certificate.true
if an unlocked certificate is locked now.false
if the certificate is already locked.IssuerCertificateManagementWs.CertificateManagementWSFault
- IssuerCertificateManagementWs.ErrorCodes.PERMISSION_DENIED
if the permission is denied.
IssuerCertificateManagementWs.ErrorCodes.ISSUERDN_INVALID
if the issuer DN is null or empty.
IssuerCertificateManagementWs.ErrorCodes.SERIAL_NUMBER_INVALID
if the serial number is null.
IssuerCertificateManagementWs.ErrorCodes.REQUESTED_CERTIFICATE_NOT_FOUND
if the requested certificate cannot be found.}
IssuerCertificateManagementWs.ErrorCodes.GENERAL_ERROR
if an internal error occur.public boolean unlockCertificate(String issuerDN, BigInteger serialNumber) throws IssuerCertificateManagementWs.CertificateManagementWSFault
issuerDN
- The issuerDN of the certificate.serialNumber
- The serial number of the certificate.true
if a locked certificate is unlocked now.false
if the certificate is already unlocked.IssuerCertificateManagementWs.CertificateManagementWSFault
- IssuerCertificateManagementWs.ErrorCodes.PERMISSION_DENIED
if the permission is denied.
IssuerCertificateManagementWs.ErrorCodes.ISSUERDN_INVALID
if the issuer DN is null or empty
IssuerCertificateManagementWs.ErrorCodes.SERIAL_NUMBER_INVALID
if the serial number is null.
IssuerCertificateManagementWs.ErrorCodes.REQUESTED_CERTIFICATE_NOT_FOUND
if the requested certificate cannot be found.
IssuerCertificateManagementWs.ErrorCodes.GENERAL_ERROR
if an internal error occur.public byte[][] getCertificates(String filter) throws IssuerCertificateManagementWs.CertificateManagementWSFault
filter
- IssuerCertificateManagementWs.CertificateManagementWSFault
- IssuerCertificateManagementWs.ErrorCodes.PERMISSION_DENIED
if the permission is denied.
IssuerCertificateManagementWs.ErrorCodes.FILTER_INVALID
if the filter is null, empty or invalid.
IssuerCertificateManagementWs.ErrorCodes.GENERAL_ERROR
if an internal error occur.Copyright © 2022 KOBIL Systems GmbH. All rights reserved.