Class AllowedRoute
- java.lang.Object
-
- net.ripe.rpki.commons.validation.roa.AllowedRoute
-
- All Implemented Interfaces:
Serializable,Comparable<RoaPrefixData>,RoaPrefixData
public class AllowedRoute extends Object implements RoaPrefixData, Serializable
A route allowed by a ROA configuration.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface net.ripe.rpki.commons.validation.roa.RoaPrefixData
ROA_PREFIX_DATA_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description AllowedRoute(net.ripe.ipresource.Asn asn, net.ripe.ipresource.IpRange prefix, int maximumLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<AllowedRoute>fromRoas(List<? extends Roa> roas)AnnouncedRoutegetAnnouncedRoute()net.ripe.ipresource.AsngetAsn()intgetMaximumLength()net.ripe.ipresource.IpRangegetPrefix()RoaPrefixgetRoaPrefix()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ripe.rpki.commons.validation.roa.RoaPrefixData
compareTo, toAllowedRoute
-
-
-
-
Method Detail
-
fromRoas
public static List<AllowedRoute> fromRoas(List<? extends Roa> roas)
-
getAsn
public net.ripe.ipresource.Asn getAsn()
- Specified by:
getAsnin interfaceRoaPrefixData
-
getPrefix
public net.ripe.ipresource.IpRange getPrefix()
- Specified by:
getPrefixin interfaceRoaPrefixData- Returns:
- The prefix of the entity. MUST be a prefix and not a IP range
-
getMaximumLength
public int getMaximumLength()
- Specified by:
getMaximumLengthin interfaceRoaPrefixData- Returns:
- The maximum length of the VRP. The maximum length MUST be in the range (inclusive) between the prefix length and the length of addresses for the address family.
-
getAnnouncedRoute
public AnnouncedRoute getAnnouncedRoute()
-
getRoaPrefix
public RoaPrefix getRoaPrefix()
-
-