|
Java 2 Útikalauz programozóknak 5.0 | ||||||||
| ELŐZŐ TÍPUS KÖVETKEZŐ TÍPUS | MEGOSZTVA EGY LAPON | ||||||||
| ÖSSZEFOGLALÁS: Beágyazások | Mezők | Konstruktorok | Metódusok | RÉSZLETEK: Mezők | Konstruktorok | Metódusok | ||||||||
java.lang.Objectelte.java2_utikalauz5.security.SamplePrincipal
This class implements the Principal interface
and represents a Sample user.
Principals such as this SamplePrincipal
may be associated with a particular Subject
to augment that Subject with an additional
identity. Refer to the Subject class for more information
on how to achieve this. Authorization decisions can then be based upon
the Principals associated with a Subject.
Principal,
Subject,
Szerializált forma| Mezők | |
|---|---|
private String |
name
|
| Konstruktorok | |
|---|---|
SamplePrincipal(String name)
Create a SamplePrincipal with a Sample username. |
|
| Metódusok | |
|---|---|
boolean |
equals(Object o)
Compares the specified Object with this SamplePrincipal
for equality. |
String |
getName()
Return the Sample username for this SamplePrincipal. |
int |
hashCode()
Return a hash code for this SamplePrincipal. |
String |
toString()
Return a string representation of this SamplePrincipal. |
| java.lang.Object osztálytól örökölt metódusok |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Mezők részletezése |
|---|
private String name
| Konstruktorok részletezése |
|---|
public SamplePrincipal(String name)
name - the Sample username for this user.
NullPointerException - if the name
is null.| Metódusok részletezése |
|---|
public String getName()
SamplePrincipal.
Principal interfész getName metódusátSamplePrincipalpublic String toString()
SamplePrincipal.
Principal interfész toString metódusátObject osztály toString metódusátSamplePrincipal.public boolean equals(Object o)
SamplePrincipal
for equality. Returns true if the given object is also a
SamplePrincipal and the two SamplePrincipals
have the same username.
Principal interfész equals metódusátObject osztály equals metódusáto - Object to be compared for equality with this
SamplePrincipal.
SamplePrincipal.public int hashCode()
SamplePrincipal.
Principal interfész hashCode metódusátObject osztály hashCode metódusátSamplePrincipal.
|
Java 2 Útikalauz programozóknak 5.0 | ||||||||
| ELŐZŐ TÍPUS KÖVETKEZŐ TÍPUS | MEGOSZTVA EGY LAPON | ||||||||
| ÖSSZEFOGLALÁS: Beágyazások | Mezők | Konstruktorok | Metódusok | RÉSZLETEK: Mezők | Konstruktorok | Metódusok | ||||||||