Class ResourceExtensionParser
- java.lang.Object
-
- 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
Constructors Constructor Description ResourceExtensionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceExtensionparse(X509Certificate certificate)net.ripe.ipresource.IpResourceSetparseAsIdentifiers(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 singleIpResourceSetcontaining both IPv4 and IPv6 addresses.
-
-
-
Method Detail
-
parse
public ResourceExtension parse(X509Certificate certificate)
-
parseIpAddressBlocks
public SortedMap<AddressFamily,net.ripe.ipresource.IpResourceSet> parseIpAddressBlocks(byte[] extension)
Parses the IP address blocks extension and merges all address families into a singleIpResourceSetcontaining both IPv4 and IPv6 addresses. Maps anAddressFamilytonullwhen 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 anIpResourceSet. RDI information is not supported. Returnsnullif the AS numbers are inherited.
-
-