public class UserProfilePrincipal extends AS400Principal implements AS400BasicAuthenticationPrincipal
AS400Principal
,
Serialized FormConstructor and Description |
---|
UserProfilePrincipal()
Constructs a UserProfilePrincipal object.
|
UserProfilePrincipal(AS400 system,
java.lang.String name)
Constructs a UserProfilePrincipal object.
|
UserProfilePrincipal(java.lang.String name)
Constructs a UserProfilePrincipal object with the principal
name set to the supplied argument.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified Object with the credential
for equality.
|
java.lang.String |
getUserProfileName()
Returns the user profile name.
|
int |
hashCode()
Returns a hash code for this principal.
|
void |
initialize(java.lang.String name)
Initializes a principal for the local IBM i system
based on the given user profile name.
|
void |
setUserProfileName(java.lang.String name)
Sets the user profile name.
|
java.lang.String |
toString()
Returns a string representation of the object
|
addPropertyChangeListener, addVetoableChangeListener, getName, getSystem, getUser, removePropertyChangeListener, removeVetoableChangeListener, setSystem
public UserProfilePrincipal()
public UserProfilePrincipal(java.lang.String name)
name
- The user profile name.public UserProfilePrincipal(AS400 system, java.lang.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.public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class java.lang.Object
o
- Object to be compared for equality.public java.lang.String getUserProfileName()
getUserProfileName
in interface AS400BasicAuthenticationPrincipal
getUserProfileName
in class AS400Principal
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public void initialize(java.lang.String name) throws java.lang.Exception
initialize
in interface AS400BasicAuthenticationPrincipal
name
- The profile name.java.lang.Exception
- If an exception occurs.public void setUserProfileName(java.lang.String name) throws java.beans.PropertyVetoException
name
- The profile name.java.beans.PropertyVetoException
- If the change is vetoed.ExtendedIllegalArgumentException
- If the provided value exceeds the maximum
allowed length or contains non-valid
characters.public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object