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

public Class EDIPartyName

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

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 }
Author
Hemma Prafullchandra
See Also
GeneralName, GeneralNames, GeneralNameInterface

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
EDIPartyName(String
the name of the assigner
assignerName
,
String
the name of the EDI party.
partyName
)

Create the EDIPartyName object from the specified names.

public
EDIPartyName(String
the name of the EDI party.
partyName
)

Create the EDIPartyName object from the specified name.

public
EDIPartyName(DerValue
the encoded DER EDIPartyName.
derValue
)

Create the EDIPartyName object from the passed encoded Der value.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

constraint type above
constrains
(GeneralNameInterface
to be checked for being constrained
inputName
)

Implements sun.security.x509.GeneralNameInterface.constrains.

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
public void
encode(DerOutputStream
the DER stream to encode the EDIPartyName to.
out
)

Implements sun.security.util.DerEncoder.encode.

Encode the EDI party name into the DerOutputStream.

public boolean

Returns:

true if the two names match
equals
(Object obj)

Overrides java.lang.Object.equals.

Compare this EDIPartyName with another.

public String

Returns:

String assignerName
getAssignerName
()

Return the assignerName

public String

Returns:

String partyName
getPartyName
()

Return the partyName

public int
getType()

Implements sun.security.x509.GeneralNameInterface.getType.

Return the type of the GeneralName.

public int

Returns:

the hash code value for this EDIPartyName
hashCode
()

Overrides java.lang.Object.hashCode.

Returns the hash code value for this EDIPartyName.

public int

Returns:

distance of name from root
subtreeDepth
()

Implements sun.security.x509.GeneralNameInterface.subtreeDepth.

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

public String
toString()

Overrides java.lang.Object.toString.

Return the printable string.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

assignerback to summary
private String assigner
myhashback to summary
private int myhash
partyback to summary
private String party
TAG_ASSIGNERback to summary
private static final byte TAG_ASSIGNER
TAG_PARTYNAMEback to summary
private static final byte TAG_PARTYNAME

Constructor Detail

EDIPartyNameback to summary
public EDIPartyName(String assignerName, String partyName)

Create the EDIPartyName object from the specified names.

Parameters
assignerName:String

the name of the assigner

partyName:String

the name of the EDI party.

EDIPartyNameback to summary
public EDIPartyName(String partyName)

Create the EDIPartyName object from the specified name.

Parameters
partyName:String

the name of the EDI party.

EDIPartyNameback to summary
public EDIPartyName(DerValue derValue) throws IOException

Create the EDIPartyName object from the passed encoded Der value.

Parameters
derValue:DerValue

the encoded DER EDIPartyName.

Exceptions
IOException:
on error.

Method Detail

constrainsback to summary
public int constrains(GeneralNameInterface inputName) throws UnsupportedOperationException

Implements sun.security.x509.GeneralNameInterface.constrains.

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:GeneralNameInterface

to be checked for being constrained

Returns:int

constraint type above

Exceptions
UnsupportedOperationException:
if name is same type, but comparison operations are not supported for this name type.
encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Encode the EDI party name into the DerOutputStream.

Parameters
out:DerOutputStream

the DER stream to encode the EDIPartyName to.

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

Overrides java.lang.Object.equals.

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

Returns:boolean

true if the two names match

Annotations
@Override
getAssignerNameback to summary
public String getAssignerName()

Return the assignerName

Returns:String

String assignerName

getPartyNameback to summary
public String getPartyName()

Return the partyName

Returns:String

String partyName

getTypeback to summary
public int getType()

Implements sun.security.x509.GeneralNameInterface.getType.

Return the type of the GeneralName.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns the hash code value for this EDIPartyName.

Returns:int

the hash code value for this EDIPartyName

Annotations
@Override
subtreeDepthback to summary
public int subtreeDepth() throws UnsupportedOperationException

Implements sun.security.x509.GeneralNameInterface.subtreeDepth.

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

Returns:int

distance of name from root

Exceptions
UnsupportedOperationException:
if not supported for this name type
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the printable string.