Class ResourceExtensionParser


  • public class ResourceExtensionParser
    extends Object
    Parses the certificate resource extensions as specified in RFC3779. Resource inheritance is not yet supported.

    The methods in this class are named after the grammar rules in RFC3779, prefixed with "derTo".

    • Constructor Detail

      • ResourceExtensionParser

        public ResourceExtensionParser()
    • Method Detail

      • parseIpAddressBlocks

        public SortedMap<AddressFamily,​net.ripe.ipresource.IpResourceSet> parseIpAddressBlocks​(byte[] extension)
        Parses the IP address blocks extension and merges all address families into a single IpResourceSet containing both IPv4 and IPv6 addresses. Maps an AddressFamily to null when the resource of this type are inherited. If no resources are specified it is mapped to an empty resource set.
      • parseAsIdentifiers

        public net.ripe.ipresource.IpResourceSet parseAsIdentifiers​(byte[] extension)
        Parses the AS Identifier extension. All ASNUM entries are returned as an IpResourceSet. RDI information is not supported. Returns null if the AS numbers are inherited.