|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.security.auth.AS400Principal
com.ibm.as400.security.auth.UserProfilePrincipal
The UserProfilePrincipal class represents an i5/OS system user profile.
AS400Principal
,
Serialized FormConstructor Summary | |
---|---|
UserProfilePrincipal()
Constructs a UserProfilePrincipal object. |
|
UserProfilePrincipal(AS400 system,
String name)
Constructs a UserProfilePrincipal object. |
|
UserProfilePrincipal(String name)
Constructs a UserProfilePrincipal object with the principal name set to the supplied argument. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares the specified Object with the credential for equality. |
String |
getUserProfileName()
Returns the user profile name. |
int |
hashCode()
Returns a hash code for this principal. |
void |
initialize(String name)
Initializes a principal for the local i5/OS system based on the given user profile name. |
void |
setUserProfileName(String name)
Sets the user profile name. |
String |
toString()
Returns a string representation of the object |
Methods inherited from class com.ibm.as400.security.auth.AS400Principal |
---|
addPropertyChangeListener, addVetoableChangeListener, getName, getSystem, getUser, removePropertyChangeListener, removeVetoableChangeListener, setSystem |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
getName |
Constructor Detail |
public UserProfilePrincipal()
public UserProfilePrincipal(String name)
name
- The user profile name.public UserProfilePrincipal(AS400 system, String name)
The system and name properties are set to the specified values.
system
- The system associated with the principal.name
- The user profile name.Method Detail |
public boolean equals(Object o)
equals
in interface Principal
o
- Object to be compared for equality.
public String getUserProfileName()
getUserProfileName
in interface AS400BasicAuthenticationPrincipal
getUserProfileName
in class AS400Principal
public int hashCode()
hashCode
in interface Principal
public void initialize(String name) throws Exception
initialize
in interface AS400BasicAuthenticationPrincipal
name
- The profile name.
Exception
- If an exception occurs.public void setUserProfileName(String name) throws PropertyVetoException
name
- The profile name.
PropertyVetoException
- If the change is vetoed.
ExtendedIllegalArgumentException
- If the provided value exceeds the maximum
allowed length or contains non-valid
characters.public String toString()
toString
in interface Principal
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |