public class

EDIPartyName

extends Object
implements GeneralNameInterface
java.lang.Object
   ↳ sun.security.x509.EDIPartyName

Class Overview

This class defines the EDIPartyName of the GeneralName choice. The ASN.1 syntax for this is:

 EDIPartyName ::= SEQUENCE {
     nameAssigner  [0]  DirectoryString OPTIONAL,
     partyName     [1]  DirectoryString }
 

Summary

[Expand]
Inherited Constants
From interface sun.security.x509.GeneralNameInterface
Public Constructors
EDIPartyName(String assignerName, String partyName)
Create the EDIPartyName object from the specified names.
EDIPartyName(String partyName)
Create the EDIPartyName object from the specified name.
EDIPartyName(DerValue derValue)
Create the EDIPartyName object from the passed encoded Der value.
Public Methods
int constrains(GeneralNameInterface inputName)
Return constraint type:
  • NAME_DIFF_TYPE = -1: input name is different type from name (i.e.
void encode(DerOutputStream out)
Encode the EDI party name into the DerOutputStream.
boolean equals(Object other)
Compare this EDIPartyName with another.
String getAssignerName()
Return the assignerName
String getPartyName()
Return the partyName
int getType()
Return the type of the GeneralName.
int hashCode()
Returns the hash code value for this EDIPartyName.
int subtreeDepth()
Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds and for calculating path lengths in name subtrees.
String toString()
Return the printable string.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.security.x509.GeneralNameInterface

Public Constructors

public EDIPartyName (String assignerName, String partyName)

Create the EDIPartyName object from the specified names.

Parameters
assignerName the name of the assigner
partyName the name of the EDI party.

public EDIPartyName (String partyName)

Create the EDIPartyName object from the specified name.

Parameters
partyName the name of the EDI party.

public EDIPartyName (DerValue derValue)

Create the EDIPartyName object from the passed encoded Der value.

Parameters
derValue the encoded DER EDIPartyName.
Throws
IOException on error.

Public Methods

public int constrains (GeneralNameInterface inputName)

Return constraint type:

  • NAME_DIFF_TYPE = -1: input name is different type from name (i.e. does not constrain)
  • NAME_MATCH = 0: input name matches name
  • NAME_NARROWS = 1: input name narrows name
  • NAME_WIDENS = 2: input name widens name
  • NAME_SAME_TYPE = 3: input name does not match or narrow name, but is same type
. These results are used in checking NameConstraints during certification path verification.

Parameters
inputName to be checked for being constrained
Throws
UnsupportedOperationException if name is same type, but comparison operations are not supported for this name type.

public void encode (DerOutputStream out)

Encode the EDI party name into the DerOutputStream.

Parameters
out the DER stream to encode the EDIPartyName to.
Throws
IOException on encoding errors.

public boolean equals (Object other)

Compare this EDIPartyName with another. Does a byte-string comparison without regard to type of the partyName and the assignerName.

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

public String getAssignerName ()

Return the assignerName

public String getPartyName ()

Return the partyName

public int getType ()

Return the type of the GeneralName.

public int hashCode ()

Returns the hash code value for this EDIPartyName.

Returns
  • a hash code value.

public int subtreeDepth ()

Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds and for calculating path lengths in name subtrees.

Throws
UnsupportedOperationException if not supported for this name type

public String toString ()

Return the printable string.

Returns
  • a string representation of the object.