public class

GeneralSubtree

extends Object
java.lang.Object
   ↳ sun.security.x509.GeneralSubtree

Class Overview

Represent the GeneralSubtree ASN.1 object, whose syntax is:

 GeneralSubtree ::= SEQUENCE {
    base             GeneralName,
    minimum  [0]     BaseDistance DEFAULT 0,
    maximum  [1]     BaseDistance OPTIONAL
 }
 BaseDistance ::= INTEGER (0..MAX)
 

Summary

Public Constructors
GeneralSubtree(GeneralName name, int min, int max)
The default constructor for the class.
GeneralSubtree(DerValue val)
Create the object from its DER encoded form.
Public Methods
void encode(DerOutputStream out)
Encode the GeneralSubtree.
boolean equals(Object other)
Compare this GeneralSubtree with another
int getMaximum()
Return the maximum BaseDistance.
int getMinimum()
Return the minimum BaseDistance.
GeneralName getName()
Return the GeneralName.
int hashCode()
Returns the hash code for this GeneralSubtree.
String toString()
Return a printable string of the GeneralSubtree.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GeneralSubtree (GeneralName name, int min, int max)

The default constructor for the class.

public GeneralSubtree (DerValue val)

Create the object from its DER encoded form.

Parameters
val the DER encoded from of the same.
Throws
IOException

Public Methods

public void encode (DerOutputStream out)

Encode the GeneralSubtree.

Throws
IOException

public boolean equals (Object other)

Compare this GeneralSubtree with another

Parameters
other GeneralSubtree to compare to this
Returns
  • true if this object is the same as the obj argument; false otherwise.

public int getMaximum ()

Return the maximum BaseDistance.

Returns
  • the maximum BaseDistance, or -1 if not set.

public int getMinimum ()

Return the minimum BaseDistance.

Returns
  • the minimum BaseDistance. Default is 0 if not set.

public GeneralName getName ()

Return the GeneralName.

Returns
  • the GeneralName

public int hashCode ()

Returns the hash code for this GeneralSubtree.

Returns
  • a hash code value.

public String toString ()

Return a printable string of the GeneralSubtree.

Returns
  • a string representation of the object.