All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.security.auth.UserProfilePrincipal
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 AS/400 user profile.
- See Also:
- AS400Principal
-
UserProfilePrincipal()
- Constructs a UserProfilePrincipal object.
-
UserProfilePrincipal(AS400, String)
- Constructs a UserProfilePrincipal object.
-
equals(Object)
- Compares the specified Object with the credential
for equality.
-
getUserProfileName()
- Returns the user profile name.
-
hashCode()
- Returns a hash code for this principal.
-
initialize(String)
- Initializes a principal for the local AS/400 system
based on the given user profile name.
-
setUserProfileName(String)
- Sets the user profile name.
-
toString()
- Returns a string representation of the object
UserProfilePrincipal
public UserProfilePrincipal()
- Constructs a UserProfilePrincipal object.
UserProfilePrincipal
public UserProfilePrincipal(AS400 system,
String name)
- Constructs a UserProfilePrincipal object.
The system and name properties
are set to the specified values.
- Parameters:
- system
- The AS/400 associated with the principal.
- name
- The user profile name.
equals
public boolean equals(Object o)
- Compares the specified Object with the credential
for equality.
- Parameters:
- o
- Object to be compared for equality.
- Returns:
- true if equal; otherwise false.
- Overrides:
- equals in class Object
getUserProfileName
public String getUserProfileName()
- Returns the user profile name.
- Returns:
- A String containing the name; empty if not assigned.
- Overrides:
- getUserProfileName in class AS400Principal
hashCode
public int hashCode()
- Returns a hash code for this principal.
- Returns:
- a hash code for this principal.
- Overrides:
- hashCode in class Object
initialize
public void initialize(String name) throws Exception
- Initializes a principal for the local AS/400 system
based on the given user profile name.
- Parameters:
- name
- The profile name.
- Throws: Exception
- If an exception occurs.
setUserProfileName
public void setUserProfileName(String name) throws PropertyVetoException
- Sets the user profile name.
- Parameters:
- name
- The profile name.
- Throws: PropertyVetoException
- If the change is vetoed.
- Throws: ExtendedIllegalArgumentException
- If the provided value exceeds the maximum
allowed length or contains non-valid
characters.
toString
public String toString()
- Returns a string representation of the object
- Returns:
- a string representation of the object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index