Interface IRepository
- All Known Subinterfaces:
IKeyRepository
- All Known Implementing Classes:
CertificateRepository,ReplicaIDRepository,Repository,RequestRepository
public interface IRepository
An interface represents a generic repository. It maintains unique
serial number within repository.
- Version:
- $Revision$, $Date$
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if a new range is needed, or if we have reached the end of the current range, or if a range conflict has occurred.Retrieves the next serial number, and also increase the serial number by one.Retrieves the next serial number without increasing the serial number.voidsetEnableSerialMgmt(boolean value) Sets whether serial number management is enabled for certs and requests.voidsetMaxSerial(BigInteger serial) Set the maximum serial number.voidsetNextMaxSerial(BigInteger serial) Set the maximum serial number in next range.
-
Method Details
-
getNextSerialNumber
Retrieves the next serial number, and also increase the serial number by one.- Returns:
- serial number
- Throws:
EBaseException- failed to retrieve next serial number
-
peekNextSerialNumber
Retrieves the next serial number without increasing the serial number.- Returns:
- serial number
- Throws:
EBaseException- failed to retrieve next serial number
-
setMaxSerial
Set the maximum serial number.- Parameters:
serial- maximum number- Throws:
EBaseException- failed to set maximum serial number
-
setNextMaxSerial
Set the maximum serial number in next range.- Parameters:
serial- maximum number- Throws:
EBaseException- failed to set maximum serial number in next range
-
checkRanges
Checks to see if a new range is needed, or if we have reached the end of the current range, or if a range conflict has occurred.- Throws:
EBaseException- failed to check next range for conflicts
-
setEnableSerialMgmt
Sets whether serial number management is enabled for certs and requests.- Parameters:
value- true/false- Throws:
EBaseException- failed to set
-