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
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
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.security.x509.GeneralNameInterface
abstract
int
|
constrains(GeneralNameInterface inputName)
Return type of constraint inputName places on this name:
- NAME_DIFF_TYPE = -1: input name is different type from name (i.e.
|
abstract
void
|
encode(DerOutputStream out)
Encode the name to the specified DerOutputStream.
|
abstract
int
|
getType()
Return the type of the general name, as
defined above.
|
abstract
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.
|
|
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. |
Public Methods
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 |
Encode the EDI party name into the DerOutputStream.
Parameters
out
| the DER stream to encode the EDIPartyName to. |
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
()
public
int
getType
()
Return the type of the GeneralName.
public
int
hashCode
()
Returns the hash code value for this EDIPartyName.
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.
public
String
toString
()
Return the printable string.
Returns
- a string representation of the object.