Package org.xbill.DNS.dnssec
Class AlgorithmRequirements
java.lang.Object
org.xbill.DNS.dnssec.AlgorithmRequirements
Storage for DNSKEY algorithm requirements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitialize algo needs structure, set algos from rrset as needed.(package private) voidInitialize this instance from a signalled algo list.(package private) intmissing()See how many algorithms are missing (not bogus or secure, but not processed)(package private) voidsetBogus(int algo) Mark this algorithm a failure (SecurityStatus.BOGUS).(package private) booleansetSecure(int algo) Mark this algorithm as a success (SecurityStatus.SECURE), and see if we are done.
-
Field Details
-
MAX_ALGORITHMS
private static final int MAX_ALGORITHMS- See Also:
-
valUtils
-
needs
private final short[] needsthe algorithms (8-bit) with each a number.0: not marked.
1: marked 'necessary but not yet fulfilled'
2: marked bogus.Indexed by algorithm number.
-
num
private int numThe number of entries inneedsthat are unfulfilled
-
-
Constructor Details
-
AlgorithmRequirements
-
-
Method Details
-
initList
Initialize this instance from a signalled algo list.- Parameters:
sigalg- signalled algorithm list.
-
initDs
Initialize algo needs structure, set algos from rrset as needed.- Parameters:
dsRRset- algorithms from this RRset are necessary.favoriteDsAlgorithm- filter to use only this DS algo.- Returns:
- List of signalled algorithms.
-
setSecure
boolean setSecure(int algo) Mark this algorithm as a success (SecurityStatus.SECURE), and see if we are done.- Parameters:
algo- : the algorithm processed to be secure.- Returns:
- if true, processing has finished successfully, we are satisfied.
-
setBogus
void setBogus(int algo) Mark this algorithm a failure (SecurityStatus.BOGUS). It can later be overridden by a success for this algorithm (with a different signature).- Parameters:
algo- the algorithm processed to be bogus.
-
missing
int missing()See how many algorithms are missing (not bogus or secure, but not processed)- Returns:
- number of algorithms missing after processing.
-