Previous Topic Next topic Print topic


Class CobolPrincipal

This interface 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.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
java.lang.Object

extended by com.microfocus.cobol.connector.spi.CobolPrincipal

All Implemented Interfaces

Principal, Serializable

Class Specifications

public class CobolPrincipal

extends Object

implements Principal, Serializable

See Also:

Serialized Form

Constructor Summary

CobolPrincipal(String name)
Create a CobolPrincipal 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

CobolPrincipal
public CobolPrincipal(String name)

Create a CobolPrincipal 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
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
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
Returns:
A hash code for this SamplePrincipal.
Previous Topic Next topic Print topic