AS400BasicAuthenticationPrincipal
, Serializable
, Principal
public class UserProfilePrincipal extends AS400Principal implements AS400BasicAuthenticationPrincipal
AS400Principal
,
Serialized FormConstructor | 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 | 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
|
addPropertyChangeListener, addVetoableChangeListener, getName, getSystem, getUser, removePropertyChangeListener, removeVetoableChangeListener, setSystem
public UserProfilePrincipal()
public UserProfilePrincipal(String name)
name
- The user profile name.public boolean equals(Object o)
public String getUserProfileName()
getUserProfileName
in interface AS400BasicAuthenticationPrincipal
getUserProfileName
in class AS400Principal
public int hashCode()
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.Copyright © 2025. All rights reserved.