net.ripe.rpki.commons.crypto.rfc3779
Class ResourceExtensionParser

java.lang.Object
  extended by net.ripe.rpki.commons.crypto.rfc3779.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 Summary
ResourceExtensionParser()
           
 
Method Summary
 net.ripe.ipresource.IpResourceSet parseAsIdentifiers(byte[] extension)
          Parses the AS Identifier extension.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2008-2015 RIPE NCC, the Netherlands. All Rights Reserved.