|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.as400.security.auth.AS400Principal com.ibm.as400.security.auth.UserProfilePrincipal
public class UserProfilePrincipal extends AS400Principal implements AS400BasicAuthenticationPrincipal
The UserProfilePrincipal class represents an IBM i system user profile.
AS400Principal
,
Serialized FormConstructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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 IBM i 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
equals
in class Object
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
hashCode
in class Object
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
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |