Class SAFAuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.wsspi.security.authorization.saf.SAFAuthorizationException
- All Implemented Interfaces:
Serializable
For exceptions thrown from SAFAuthorizationService.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSAFAuthorizationException(int safReturnCode, int racfReturnCode, int racfReasonCode, String userSecName, String applID, String safProfile, String safClass) SAFAuthorizationException(int safReturnCode, int racfReturnCode, int racfReasonCode, String userSecName, String applID, String safProfile, String safClass, String volser, boolean vsam) Constructor with volser and vsam fields -
Method Summary
Modifier and TypeMethodDescriptionThe APPLID used to perform this authorization check.intThe RACF reason code from the service which generated this authorization failure.intThe RACF return code from the service which generated this authorization failure.The SAF class against which the authorization check was made.The SAF profile against which the authorization check was made.intThe SAF return code from the service which generated this authorization failure.The username against who this authorization check was made.The Volume Serial number for where the dataset is stored.booleangetVsam()Flag that specifies whether dataset is vsam or non-vsam.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SAFAuthorizationException
-
SAFAuthorizationException
public SAFAuthorizationException() -
SAFAuthorizationException
-
SAFAuthorizationException
public SAFAuthorizationException(int safReturnCode, int racfReturnCode, int racfReasonCode, String userSecName, String applID, String safProfile, String safClass, String volser, boolean vsam) Constructor with volser and vsam fields
-
-
Method Details
-
getSafReturnCode
public int getSafReturnCode()The SAF return code from the service which generated this authorization failure.- Returns:
- The SAF return code, or -1 if the SAF return code is not available.
-
getRacfReturnCode
public int getRacfReturnCode()The RACF return code from the service which generated this authorization failure. Note that if a security product other than RACF is being used, its return code will be returned by this method.- Returns:
- The RACF return code, or -1 if the RACF return code is not available.
-
getRacfReasonCode
public int getRacfReasonCode()The RACF reason code from the service which generated this authorization failure. Note that if a security product other than RACF is being used, its reason code will be returned by this method.- Returns:
- The RACF reason code, or -1 if the RACF reason code is not available.
-
getUserSecurityName
The username against who this authorization check was made.- Returns:
- The username against who this authorization check was made, or null if not available.
-
getApplid
The APPLID used to perform this authorization check.- Returns:
- The APPLID, or null if not available.
-
getSafProfile
The SAF profile against which the authorization check was made.- Returns:
- The SAF profile, or null if not available.
-
getSafClass
The SAF class against which the authorization check was made.- Returns:
- The SAF class, or null if not available.
-
getVolser
The Volume Serial number for where the dataset is stored. Used for isAuthorizedToDataset and isGroupAuthorizedToDataset- Returns:
- 6-char string volume serial number, or null if not available
-
getVsam
public boolean getVsam()Flag that specifies whether dataset is vsam or non-vsam. Used for isAuthorizedToDataset and isGroupAuthorizedToDataset- Returns:
- boolean value of vsam
-