Previous Topic Next topic Print topic


Class MFECIPrincipal

Represents the abstract notion of a principal, which can be used to represent any entity, such as an individual, a corporation, and a login ID.
java.lang.Object

extended by com.microfocus.cics.connector.spi.MFECIPrincipal

All Implemented Interfaces

Principal, Serializable

Class Specifications

public class MFECIPrincipal

extends Object

implements Principal, Serializable

See Also:

Serialized Form

Constructor Summary

MFECIPrincipal(String name)
Create an MFECIPrincipal with a username.

Methods

Method Summary
String getName()

Return the username for this SamplePrincipal.

String toString()

Return a string representation of this SamplePrincipal.

boolean equals()

Compares the specified Object with this SamplePrincipal for equality. Returns true if the given object is also a SamplePrincipal and the two SamplePrincipals have the same username.

String hashCode()

Return a hash code for this SamplePrincipal.

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

MFECIPrincipal
public MFECIPrincipal(String name)

Create an MFECIPrincipal with a username.

Method Detail

getName
public String getName()

Return the username for this SamplePrincipal.

Specified by:
getName in interface Principal
Returns:
The Sample username for this SamplePrincipal.
toString
public String toString()

Return a string representation of this SamplePrincipal.

Specified by:
toString in interface Principal
Overrides:
toString in class Object
Returns:
A string representation of this SamplePrincipal.
equals
public boolean equals (Object o)

Compares the specified Object with this SamplePrincipal for equality. Returns true if the given object is also a SamplePrincipal and the two SamplePrincipals have the same username.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
o Object to be compared for equality with this SamplePrincipal.
Returns:
True if the specified Object is equal to this SamplePrincipal.
hashCode
public int hashCode()

Return a hash code for this SamplePrincipal.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
A hash code for this SamplePrincipal.
Previous Topic Next topic Print topic