APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class GeneralSubtree

extends Object
implements DerEncoder
Class Inheritance
All Implemented Interfaces
sun.security.util.DerEncoder
Imports
java.io.*, java.util.Objects, sun.security.util.*

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)
Authors
Amit Kapoor, Hemma Prafullchandra

Field Summary

Modifier and TypeField and Description
private int
private static final int
private int
private int
private final GeneralName
private static final byte
private static final byte

Constructor Summary

AccessConstructor and Description
public
GeneralSubtree(GeneralName
the GeneralName
name
,
int
the minimum BaseDistance
min
,
int
the maximum BaseDistance
max
)

The default constructor for the class.

public
GeneralSubtree(DerValue
the DER encoded from of the same.
val
)

Create the object from its DER encoded form.

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to encode this object to.
out
)

Implements sun.security.util.DerEncoder.encode.

Encode the GeneralSubtree.

public boolean

Returns:

true if match
equals
(Object
GeneralSubtree to compare to this
obj
)

Overrides java.lang.Object.equals.

Compare this GeneralSubtree with another

public int

Returns:

the maximum BaseDistance, or -1 if not set.
getMaximum
()

Return the maximum BaseDistance.

public int

Returns:

the minimum BaseDistance. Default is 0 if not set.
getMinimum
()

Return the minimum BaseDistance.

public GeneralName

Returns:

the GeneralName
getName
()

Return the GeneralName.

public int

Returns:

the hash code for this GeneralSubtree
hashCode
()

Overrides java.lang.Object.hashCode.

Returns the hash code for this GeneralSubtree.

public String
toString()

Overrides java.lang.Object.toString.

Return a printable string of the GeneralSubtree.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

maximumback to summary
private int maximum
MIN_DEFAULTback to summary
private static final int MIN_DEFAULT
minimumback to summary
private int minimum
myhashback to summary
private int myhash
nameback to summary
private final GeneralName name
TAG_MAXback to summary
private static final byte TAG_MAX
TAG_MINback to summary
private static final byte TAG_MIN

Constructor Detail

GeneralSubtreeback to summary
public GeneralSubtree(GeneralName name, int min, int max)

The default constructor for the class.

Parameters
name:GeneralName

the GeneralName

min:int

the minimum BaseDistance

max:int

the maximum BaseDistance

GeneralSubtreeback to summary
public GeneralSubtree(DerValue val) throws IOException

Create the object from its DER encoded form.

Parameters
val:DerValue

the DER encoded from of the same.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Encode the GeneralSubtree.

Parameters
out:DerOutputStream

the DerOutputStream to encode this object to.

Annotations
@Override
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Compare this GeneralSubtree with another

Parameters
obj:Object

GeneralSubtree to compare to this

Returns:boolean

true if match

Annotations
@Override
getMaximumback to summary
public int getMaximum()

Return the maximum BaseDistance.

Returns:int

the maximum BaseDistance, or -1 if not set.

getMinimumback to summary
public int getMinimum()

Return the minimum BaseDistance.

Returns:int

the minimum BaseDistance. Default is 0 if not set.

getNameback to summary
public GeneralName getName()

Return the GeneralName.

Returns:GeneralName

the GeneralName

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns the hash code for this GeneralSubtree.

Returns:int

the hash code for this GeneralSubtree

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a printable string of the GeneralSubtree.