Package COM.TIBCO.hawk.console.security
Class HsFramework
java.lang.Object
COM.TIBCO.hawk.console.security.HsFramework
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanauthorize(HsIdentifier id, HsOperation operation) static HsIdentifiercreateId(HsOperation operation) static HsUnpackedOperationdecrypt(HsPackedOperation operation) static Stringstatic Stringstatic HsPackedOperationencrypt(HsOperation operation) static Stringstatic Stringstatic StringTo Fetch user Id, from the ThreadLocalstatic voidstatic voidstatic voidstatic Stringinitialize(int context) static booleanisSecure()This method is used to check if security is in place before costly security-related operations are performedstatic HsPackedOperationpack(HsIdentifier id, HsOperation operation) static voidRemove the user from ThreadLocalstatic voidSet user Id in the ThreadLocalstatic voidshutdown()static voidshutdown(int context) static HsUnpackedOperationunpack(HsPackedOperation operation)
-
Field Details
-
CNAME
-
-
Constructor Details
-
HsFramework
public HsFramework()
-
-
Method Details
-
init
- Throws:
HsFrameworkException
-
init
- Throws:
HsFrameworkException
-
initialize
- Throws:
HsFrameworkExceptionHsException
-
shutdown
- Throws:
HsFrameworkExceptionHsException
-
initialize
- Throws:
HsFrameworkExceptionHsException
-
shutdown
- Throws:
HsFrameworkExceptionHsException
-
createId
- Throws:
HsFrameworkExceptionHsException
-
pack
public static HsPackedOperation pack(HsIdentifier id, HsOperation operation) throws HsFrameworkException, HsException - Throws:
HsFrameworkExceptionHsException
-
unpack
public static HsUnpackedOperation unpack(HsPackedOperation operation) throws HsFrameworkException, HsException - Throws:
HsFrameworkExceptionHsException
-
authorize
public static boolean authorize(HsIdentifier id, HsOperation operation) throws HsFrameworkException, HsException - Throws:
HsFrameworkExceptionHsException
-
encrypt
public static HsPackedOperation encrypt(HsOperation operation) throws HsFrameworkException, HsException - Throws:
HsFrameworkExceptionHsException
-
decrypt
public static HsUnpackedOperation decrypt(HsPackedOperation operation) throws HsFrameworkException, HsException - Throws:
HsFrameworkExceptionHsException
-
isSecure
public static boolean isSecure()This method is used to check if security is in place before costly security-related operations are performed -
getConsoleSecurityPolicyClassName
-
describeConsoleSecurityPolicyClass
-
getAgentSecurityPolicyClassName
-
describeAgentSecurityPolicyClass
-
setUserId
Set user Id in the ThreadLocal- Parameters:
userId-
-
getUserId
To Fetch user Id, from the ThreadLocal- Returns:
- userId
-
removeUser
public static void removeUser()Remove the user from ThreadLocal
-