com.microfocus.cobol.connector.spi.CobolPrincipal
public class CobolPrincipal
extends Object
implements Principal, Serializable
See Also:
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. |
public CobolPrincipal(String name)
Create a CobolPrincipal with a username.
public String getName()
Return the username for this SamplePrincipal.
public String toString()
Return a string representation of this SamplePrincipal.
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.
public int hashCode()
Return a hash code for this SamplePrincipal.