| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set | |
| private Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addExcludedSubtree(GeneralSubtree
A subtree with an excluded GeneralName. subtree)Implements org. |
| private final void | |
| public void | checkExcluded(GeneralName
The GeneralName. name)Implements org. |
| public void | |
| private void | |
| private void | |
| private void | |
| private void | checkExcludedIP(Set<E>
A excluded, byte[] Set of excluded IP addresses with their
subnet mask as byte arrays.The IP address. ip)Checks if the IP |
| private void | |
| private void | |
| public void | checkPermitted(GeneralName
The GeneralName name)Implements org. |
| public void | |
| private void | |
| private void | |
| private void | |
| private void | checkPermittedIP(Set<E>
A permitted, byte[] Set of permitted IP addresses with
their subnet mask as byte arrays.The IP address. ip)Checks if the IP |
| private void | |
| private void | |
| private boolean | |
| private static int | Returns: 0 if ip1 is equal to ip2, 1 if ip1 is bigger, -1 otherwise.The first IP address. ip1, byte[] The second IP address. ip2)Compares IP address |
| private boolean | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| private boolean | |
| private static String | |
| private byte[][] | Returns: An array with two elements. Each element contains the IP address and the subnet mask in this order.The first IP address with the subnet mask. ipWithSubmask1, byte[] The second IP address with the subnet mask. ipWithSubmask2)Splits the IP addresses and their subnet mask. |
| private String | |
| public int | |
| private int | |
| private Set | |
| private Set | |
| private Set | |
| private void | intersectEmail(String
Email address constraint 1. email1, String Email address constraint 2. email2, Set<E> The intersection. intersect)The most restricting part from |
| public void | |
| private Set | Returns: TheSet of permitted IP ranges intersected with
ip.A permitted, Set<E> Set of permitted IP addresses with
their subnet mask as byte arrays.The IP address with its subnet mask. ips)Returns the intersection of the permitted IP ranges in
|
| private Set | Returns: ASet with the single IP address with its subnet
mask as a byte array or an empty Set.The first IP address with its subnet mask. ipWithSubmask1, byte[] The second IP address with its subnet mask. ipWithSubmask2)Calculates the intersection if two IP ranges. |
| private Set | |
| public void | |
| public void | intersectPermittedSubtree(GeneralSubtree[]
The permitted subtrees permitted)Implements org. |
| private Set | |
| private void | |
| private byte[] | Returns: The concatenated IP address with its subnet mask.The IP address. ip, byte[] Its subnet mask. subnetMask)Concatenates the IP address with its subnet mask. |
| private boolean | Returns: true if constrained, false
otherwise.The IP address. ip, byte[] The constraint. This is an IP address concatenated with
its subnetmask. constraint)Checks if the IP address |
| private boolean | |
| private static byte[] | Returns: The maximum IP address.The first IP address. ip1, byte[] The second IP address. ip2)Returns the maximum IP address. |
| private static byte[] | Returns: The minimum IP address.The first IP address. ip1, byte[] The second IP address. ip2)Returns the minimum IP address. |
| private byte[][] | Returns: A array with two elements. The first/second element contains the min and max IP address of the first/second IP address and its subnet mask.The first IP address. ip1, byte[] The subnet mask of the first IP address. subnetmask1, byte[] The second IP address. ip2, byte[] The subnet mask of the second IP address. subnetmask2)Based on the two IP addresses and their subnet masks the IP range is computed for each IP address - subnet mask pair and returned as the minimum IP address and the maximum address of the range. |
| private static byte[] | Returns: The OR ofip1 and ip2.The first IP address. ip1, byte[] The second IP address. ip2)Returns the logical OR of the IP addresses |
| private boolean | |
| private String | Returns: The stringified IP address.The IP with subnet mask. ip)Stringifies an IPv4 or v6 address with subnet mask. |
| private String | |
| private String | |
| public String | |
| private Set | |
| private Set | |
| private Set | |
| private void | unionEmail(String
Email address constraint 1. email1, String Email address constraint 2. email2, Set<E> The union. union)The common part of |
| private Set | |
| private Set | Returns: ASet with the union of both addresses.The first IP address with its subnet mask. ipWithSubmask1, byte[] The second IP address with its subnet mask. ipWithSubmask2)Calculates the union if two IP ranges. |
| private Set | |
| private void | |
| private Set | |
| private static boolean | |
| private boolean |
| excludedSubtreesDN | back to summary |
|---|---|
| private Set<E> excludedSubtreesDN | |
| excludedSubtreesDNS | back to summary |
|---|---|
| private Set<E> excludedSubtreesDNS | |
| excludedSubtreesEmail | back to summary |
|---|---|
| private Set<E> excludedSubtreesEmail | |
| excludedSubtreesIP | back to summary |
|---|---|
| private Set<E> excludedSubtreesIP | |
| excludedSubtreesOtherName | back to summary |
|---|---|
| private Set<E> excludedSubtreesOtherName | |
| excludedSubtreesURI | back to summary |
|---|---|
| private Set<E> excludedSubtreesURI | |
| permittedSubtreesDN | back to summary |
|---|---|
| private Set<E> permittedSubtreesDN | |
| permittedSubtreesDNS | back to summary |
|---|---|
| private Set<E> permittedSubtreesDNS | |
| permittedSubtreesEmail | back to summary |
|---|---|
| private Set<E> permittedSubtreesEmail | |
| permittedSubtreesIP | back to summary |
|---|---|
| private Set<E> permittedSubtreesIP | |
| permittedSubtreesOtherName | back to summary |
|---|---|
| private Set<E> permittedSubtreesOtherName | |
| permittedSubtreesURI | back to summary |
|---|---|
| private Set<E> permittedSubtreesURI | |
| ASN1PKIXNameConstraintValidator | back to summary |
|---|---|
| public ASN1PKIXNameConstraintValidator() | |
| addExcludedSubtree | back to summary |
|---|---|
| public void addExcludedSubtree(GeneralSubtree subtree) Implements org. Adds a subtree to the excluded set of these name constraints.
| |
| addLine | back to summary |
|---|---|
| private final void addLine(StringBuilder sb, String str) | |
| checkExcluded | back to summary |
|---|---|
| public void checkExcluded(GeneralName name) throws NameConstraintValidatorException Implements org. Check if the given GeneralName is contained in the excluded set.
| |
| checkExcludedDN | back to summary |
|---|---|
| public void checkExcludedDN(X500Name dns) throws NameConstraintValidatorException | |
| checkExcludedDN | back to summary |
|---|---|
| private void checkExcludedDN(Set<E> excluded, ASN1Sequence dns) throws NameConstraintValidatorException | |
| checkExcludedDNS | back to summary |
|---|---|
| private void checkExcludedDNS(Set<E> excluded, String dns) throws NameConstraintValidatorException | |
| checkExcludedEmail | back to summary |
|---|---|
| private void checkExcludedEmail(Set<E> excluded, String email) throws NameConstraintValidatorException | |
| checkExcludedIP | back to summary |
|---|---|
| private void checkExcludedIP(Set<E> excluded, byte[] ip) throws NameConstraintValidatorException Checks if the IP
| |
| checkExcludedOtherName | back to summary |
|---|---|
| private void checkExcludedOtherName(Set<E> excluded, OtherName name) throws NameConstraintValidatorException | |
| checkExcludedURI | back to summary |
|---|---|
| private void checkExcludedURI(Set<E> excluded, String uri) throws NameConstraintValidatorException | |
| checkPermitted | back to summary |
|---|---|
| public void checkPermitted(GeneralName name) throws NameConstraintValidatorException Implements org. Checks if the given GeneralName is in the permitted set.
| |
| checkPermittedDN | back to summary |
|---|---|
| public void checkPermittedDN(X500Name dns) throws NameConstraintValidatorException | |
| checkPermittedDN | back to summary |
|---|---|
| private void checkPermittedDN(Set<E> permitted, ASN1Sequence dns) throws NameConstraintValidatorException | |
| checkPermittedDNS | back to summary |
|---|---|
| private void checkPermittedDNS(Set<E> permitted, String dns) throws NameConstraintValidatorException | |
| checkPermittedEmail | back to summary |
|---|---|
| private void checkPermittedEmail(Set<E> permitted, String email) throws NameConstraintValidatorException | |
| checkPermittedIP | back to summary |
|---|---|
| private void checkPermittedIP(Set<E> permitted, byte[] ip) throws NameConstraintValidatorException Checks if the IP
| |
| checkPermittedOtherName | back to summary |
|---|---|
| private void checkPermittedOtherName(Set<E> permitted, OtherName name) throws NameConstraintValidatorException | |
| checkPermittedURI | back to summary |
|---|---|
| private void checkPermittedURI(Set<E> permitted, String uri) throws NameConstraintValidatorException | |
| collectionsAreEqual | back to summary |
|---|---|
| private boolean collectionsAreEqual(Collection<E> coll1, Collection<E> coll2) | |
| compareTo | back to summary |
|---|---|
| private static int compareTo(byte[] ip1, byte[] ip2) Compares IP address
| |
| emailIsConstrained | back to summary |
|---|---|
| private boolean emailIsConstrained(String email, String constraint) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| equals | back to summary |
|---|---|
| private boolean equals(Object o1, Object o2) | |
| extractHostFromURL | back to summary |
|---|---|
| private static String extractHostFromURL(String url) | |
| extractIPsAndSubnetMasks | back to summary |
|---|---|
| private byte[][] extractIPsAndSubnetMasks(byte[] ipWithSubmask1, byte[] ipWithSubmask2) Splits the IP addresses and their subnet mask.
| |
| extractNameAsString | back to summary |
|---|---|
| private String extractNameAsString(GeneralName name) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hashCollection | back to summary |
|---|---|
| private int hashCollection(Collection<E> coll) | |
| intersectDN | back to summary |
|---|---|
| private Set | |
| intersectDNS | back to summary |
|---|---|
| private Set | |
| intersectEmail | back to summary |
|---|---|
| private Set | |
| intersectEmail | back to summary |
|---|---|
| private void intersectEmail(String email1, String email2, Set<E> intersect) The most restricting part from | |
| intersectEmptyPermittedSubtree | back to summary |
|---|---|
| public void intersectEmptyPermittedSubtree(int nameType) Implements org. | |
| intersectIP | back to summary |
|---|---|
| private Set Returns the intersection of the permitted IP ranges in
| |
| intersectIPRange | back to summary |
|---|---|
| private Set Calculates the intersection if two IP ranges.
| |
| intersectOtherName | back to summary |
|---|---|
| private Set | |
| intersectPermittedSubtree | back to summary |
|---|---|
| public void intersectPermittedSubtree(GeneralSubtree permitted) Implements org. | |
| intersectPermittedSubtree | back to summary |
|---|---|
| public void intersectPermittedSubtree(GeneralSubtree[] permitted) Implements org. Updates the permitted set of these name constraints with the intersection with the given subtree.
| |
| intersectURI | back to summary |
|---|---|
| private Set | |
| intersectURI | back to summary |
|---|---|
| private void intersectURI(String email1, String email2, Set<E> intersect) | |
| ipWithSubnetMask | back to summary |
|---|---|
| private byte[] ipWithSubnetMask(byte[] ip, byte[] subnetMask) Concatenates the IP address with its subnet mask.
| |
| isIPConstrained | back to summary |
|---|---|
| private boolean isIPConstrained(byte[] ip, byte[] constraint) Checks if the IP address
| |
| isUriConstrained | back to summary |
|---|---|
| private boolean isUriConstrained(String uri, String constraint) | |
| max | back to summary |
|---|---|
| private static byte[] max(byte[] ip1, byte[] ip2) Returns the maximum IP address.
| |
| min | back to summary |
|---|---|
| private static byte[] min(byte[] ip1, byte[] ip2) Returns the minimum IP address.
| |
| minMaxIPs | back to summary |
|---|---|
| private byte[][] minMaxIPs(byte[] ip1, byte[] subnetmask1, byte[] ip2, byte[] subnetmask2) Based on the two IP addresses and their subnet masks the IP range is computed for each IP address - subnet mask pair and returned as the minimum IP address and the maximum address of the range.
| |
| or | back to summary |
|---|---|
| private static byte[] or(byte[] ip1, byte[] ip2) Returns the logical OR of the IP addresses
| |
| otherNameIsConstrained | back to summary |
|---|---|
| private boolean otherNameIsConstrained(OtherName name, OtherName constraint) | |
| stringifyIP | back to summary |
|---|---|
| private String stringifyIP(byte[] ip) Stringifies an IPv4 or v6 address with subnet mask.
| |
| stringifyIPCollection | back to summary |
|---|---|
| private String stringifyIPCollection(Set<E> ips) | |
| stringifyOtherNameCollection | back to summary |
|---|---|
| private String stringifyOtherNameCollection(Set<E> otherNames) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| unionDN | back to summary |
|---|---|
| private Set | |
| unionDNS | back to summary |
|---|---|
| private Set | |
| unionEmail | back to summary |
|---|---|
| private Set | |
| unionEmail | back to summary |
|---|---|
| private void unionEmail(String email1, String email2, Set<E> union) The common part of | |
| unionIP | back to summary |
|---|---|
| private Set Returns the union of the excluded IP ranges in | |
| unionIPRange | back to summary |
|---|---|
| private Set Calculates the union if two IP ranges.
| |
| unionOtherName | back to summary |
|---|---|
| private Set | |
| unionURI | back to summary |
|---|---|
| private void unionURI(String email1, String email2, Set<E> union) | |
| unionURI | back to summary |
|---|---|
| private Set | |
| withinDNSubtree | back to summary |
|---|---|
| private static boolean withinDNSubtree(ASN1Sequence dns, ASN1Sequence subtree) | |
| withinDomain | back to summary |
|---|---|
| private boolean withinDomain(String testDomain, String domain) | |