|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.security.auth.AS400Principal
public abstract class AS400Principal
The AS400Principal class provides an abstract superclass for representations of IBM i system security-related identities.
Typical IBM i system Principals include, but are not necessarily limited to, user profiles.
Constructor Summary | |
---|---|
AS400Principal()
Constructs an AS400Principal object. |
|
AS400Principal(AS400 system)
Constructs an AS400Principal object. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener. |
String |
getName()
Returns the name commonly used to refer to the principal. |
AS400 |
getSystem()
Returns the AS400 system object for the principal. |
User |
getUser()
Returns an IBM i system User object based on the user profile name and system associated with the principal. |
String |
getUserProfileName()
Returns the name of a user profile associated with the thread when work is performed on behalf of the principal. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified listener from the internal list. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes the specified listener from the internal list. |
void |
setSystem(AS400 system)
Sets the AS400 system object for the principal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public AS400Principal()
public AS400Principal(AS400 system)
The system property is set to the specified value.
system
- The IBM i system associated with the principal.Method Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener listener)
The specified listener's propertyChange method will be called each time the value of a bound property is changed.
listener
- The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(VetoableChangeListener listener)
The specified listener's vetoableChange method will be called each time the value of a constrained property is changed.
listener
- The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public String getName()
Default behavior for the superclass is to return the user profile name
getName
in interface Principal
public AS400 getSystem()
public User getUser() throws AS400Exception, AS400SecurityException, ConnectionDroppedException, ErrorCompletingRequestException, InterruptedException, ObjectDoesNotExistException, IOException, UnsupportedEncodingException
The system property must be set and a valid userProfileName must be identified by the principal prior to requesting the user.
ExtendedIllegalStateException
- If a required property is not set.
AS400Exception
- If the IBM i system returns an error message.
AS400SecurityException
- If a security or authority error occurs.
ConnectionDroppedException
- If the connection is dropped unexpectedly.
ErrorCompletingRequestException
- If an error occurs before the request is completed.
InterruptedException
- If this thread is interrupted.
IOException
- If an error occurs while communicating with the system.
ObjectDoesNotExistException
- If the system object does not exist.
UnsupportedEncodingException
- If the character encoding is not supported.public String getUserProfileName()
public void removePropertyChangeListener(PropertyChangeListener listener)
Does nothing if the listener is not in the list.
listener
- The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removeVetoableChangeListener(VetoableChangeListener listener)
Does nothing if the listener is not in the list.
listener
- The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setSystem(AS400 system) throws PropertyVetoException
system
- The AS400 system object.
PropertyVetoException
- If the change is vetoed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |