Class RoaPrefix
- java.lang.Object
-
- net.ripe.rpki.commons.crypto.cms.roa.RoaPrefix
-
- All Implemented Interfaces:
Serializable,Comparable<RoaPrefix>
public class RoaPrefix extends Object implements Serializable, Comparable<RoaPrefix>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RoaPrefix o)booleanequals(Object o)intgetEffectiveMaximumLength()IntegergetMaximumLength()Return the maximum length as specified in the structure of the ROA.net.ripe.ipresource.IpRangegetPrefix()inthashCode()
-
-
-
Constructor Detail
-
RoaPrefix
public RoaPrefix(net.ripe.ipresource.IpRange prefix)
-
RoaPrefix
public RoaPrefix(net.ripe.ipresource.IpRange prefix, Integer maximumLength)Instantiate an RoaPrefix.- Parameters:
prefix- prefix of the ROAmaximumLength- maximumLength of the ROA
-
-
Method Detail
-
getPrefix
public net.ripe.ipresource.IpRange getPrefix()
-
getMaximumLength
public Integer getMaximumLength()
Return the maximum length as specified in the structure of the ROA. Needed to exactly represent a decoded ROA. When consuming these objects, usegetEffectiveMaximumLength()where possible.
-
getEffectiveMaximumLength
public int getEffectiveMaximumLength()
-
compareTo
public int compareTo(RoaPrefix o)
- Specified by:
compareToin interfaceComparable<RoaPrefix>
-
-