Package dev.galasa.zossecurity
Interface IZosUserid
public interface IZosUserid
Represents a pooled userid
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectToGroup
(String group) Connect this userid to a groupvoid
delete()
Delete the userid.void
free()
Free the userid.Returns a list of connected groups for this useridRetrieve the passphraseRetrieve the passwordRetreive the useridRetrieve the zOS image this userid belongs tovoid
removeFromGroup
(String group) Remove this userid from a groupvoid
resume()
Resume the useridvoid
revoke()
Revoke the useridvoid
setPassword
(String password, String passphrase) Set the password and/or the passphrase.void
setPassword
(String password, String passphrase, boolean expire) Set the password and/or the passphrase, with or without expiryvoid
Sets the WHEN option for a RACF userid.
Days can be
ANYDAY Specifies that the user can access the system on any day.
WEEKDAYS Specifies that the user can access the system only on weekdays (Monday through Friday).
day ...
-
Method Details
-
getUserid
String getUserid()Retreive the userid- Returns:
- The userid
-
getPassword
String getPassword()Retrieve the password- Returns:
- The password, will never be null
-
getPassphrase
String getPassphrase()Retrieve the passphrase- Returns:
- The passphrase, may be null if one hasn't been set
-
getZosImage
IZosImage getZosImage()Retrieve the zOS image this userid belongs to- Returns:
- zOS image
-
setPassword
Set the password and/or the passphrase.A password must always be set, the passphrase is optional
- Parameters:
password
- The password to be set, mandatorypassphrase
- The passphrase to be set, optional- Throws:
ZosSecurityManagerException
-
setPassword
void setPassword(String password, String passphrase, boolean expire) throws ZosSecurityManagerException Set the password and/or the passphrase, with or without expiryA password must always be set, the passphrase is optional
- Parameters:
password
- The password to be set, mandatorypassphrase
- The passphrase to be set, optionalexpire
- true = expired to be set with the password- Throws:
ZosSecurityManagerException
-
revoke
Revoke the userid- Throws:
ZosSecurityManagerException
-
resume
Resume the userid- Throws:
ZosSecurityManagerException
-
connectToGroup
Connect this userid to a group- Parameters:
group
-- Throws:
ZosSecurityManagerException
-
removeFromGroup
Remove this userid from a group- Parameters:
group
-- Throws:
ZosSecurityManagerException
-
getConnectedGroups
IZosGroup[] getConnectedGroups()Returns a list of connected groups for this userid- Returns:
- list of groups
-
setWhen
Sets the WHEN option for a RACF userid.
Days can be
ANYDAY Specifies that the user can access the system on any day.
WEEKDAYS Specifies that the user can access the system only on weekdays (Monday through Friday).
day ... Specifies that the user can access the system only on the days specified, where day can be
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY, and you can specify the days in any order.
space separated. Time can be
ANYTIME Specifies that the user can access the system at any time.
start-time:end-time Specifies that the user can access the system only during the specified time period. The format of both start-time and end-time is hhmm, where hh is the hour in 24-hour notation (00 - 23) and mm is the minutes (00 - 59). Note that 0000 is not a valid time value.
If start-time is greater than end-time, the interval spans midnight and extends into the following day.- Parameters:
days
- - eg "MONDAY" or "MONDAY TUESDAY" or "ANYDAY"time
- - eg "0400:1900" or "ANYTIME"- Throws:
ZosSecurityManagerException
-
free
Free the userid. This will be performed automatically at the end of the run- Throws:
ZosSecurityManagerException
-
delete
Delete the userid.- Throws:
ZosSecurityManagerException
-