com.ibm.mm.sdk.common
Class DKCommonPrivilege
java.lang.Object
|
+--com.ibm.mm.sdk.common.DKCommonPrivilege
- All Implemented Interfaces:
- DKConstant, DKMessageId, java.io.Serializable
- public class DKCommonPrivilege
- extends java.lang.Object
- implements DKConstant, DKMessageId, java.io.Serializable
This class is an implementation in support of federated access control.
IBM Confidential
EIP Version 6.1 - 5697-G29 and 5648-D03
(C)Copyright IBM Corp. 2000. All Rights Reserved
- See Also:
- Serialized Form
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId |
For details, see the class or interface |
Method Summary |
short |
checkAuthorization(int index)
Returns the authority of the specified privilege |
boolean |
hasAdminPrivilege()
Checks for admin privileges in this common privilege object. |
void |
setAuthorization(int index,
short authority)
Sets authority of a specific privilege. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DKCommonPrivilege
public DKCommonPrivilege()
- Constructs default Federated Privilege
checkAuthorization
public short checkAuthorization(int index)
throws DKException
- Returns the authority of the specified privilege
- Parameters:
index
- int- Returns:
- authority short
setAuthorization
public void setAuthorization(int index,
short authority)
throws DKException
- Sets authority of a specific privilege.
- Parameters:
index
- intauthority
- short
hasAdminPrivilege
public boolean hasAdminPrivilege()
- Checks for admin privileges in this common privilege object. If there
is any admin privileges, return true, if there is none, return false.
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.