1 PACKAGE dbms_macsec AS
2
3 -- Audit action codes
4 G_SECURE_ROLE_AUDIT_CODE CONSTANT PLS_INTEGER := 10006;
5
6 /**
7 * Set value of a Factor (if allowed by the assignment Rule Set)
8 *
9 * @param p_factor Factor name
10 * @param p_value Value to assign to Factor
11 * @throws ORA 20391 If the assignment Rule Set is FALSE
12 * @throws ORA 20392 If the Factor does not have an assignment Rule Set
13 */
14 PROCEDURE set_factor(p_factor IN VARCHAR2,
15 p_value IN VARCHAR2);
16
17 /**
18 * Returns the value of a factor. Note that this method will return the
19 * value cached in the context if the eval_option is set for evaluate on
20 * session.
21 *
22 * @param p_factor Factor name
23 * @throws ORA 20021 Factor not found
24 * @throws ORA 20402 Bad eval_options
25 * @throws ORA 20397 Bad identified_by
26 */
27 FUNCTION get_factor(p_factor IN VARCHAR2) RETURN VARCHAR2;
28
29 /**
30 * Returns the label of a factor.
31 *
32 * @param p_factor Factor name
33 * @param p_policy_name OLS Policy name
34 * @throws ORA 20021 Factor not found
35 * @throws ORA 20402 Bad eval_options
36 * @throws ORA 20397 Bad identified_by
37 */
38 FUNCTION get_factor_label(p_factor IN VARCHAR2, p_policy_name IN VARCHAR2) RETURN VARCHAR2;
39
40 /**
41 * Get Trust Level of a Factor
42 *
43 * @param p_factor Factor name
44 * @return > 0 indicates level of trust, 0 is no trust, < 0 indicates distrust
45 */
46 FUNCTION get_trust_level(p_factor IN VARCHAR2) RETURN NUMBER;
47
48 /**
49 * Get Trust Level of a Factor Identity
50 *
51 * @param p_factor Factor name
52 * @param p_identity Identity value
53 * @return > 0 indicates level of trust, 0 is no trust, < 0 indicates distrust
54 */
55 FUNCTION get_trust_level(p_factor IN VARCHAR2,
56 p_identity IN VARCHAR2) RETURN NUMBER;
57
58 /**
59 * This method determines if a Secure Application Role is enabled
60 * for use.
61 * @param p_role Role name
62 * @return TRUE if a SET ROLE command can be issued
63 */
64 FUNCTION role_is_enabled(p_role IN VARCHAR2) RETURN BOOLEAN;
65
66 /** Fix for Bug 6441524
67 * Checks whether or not the given role is a secure application role
68 *
69 * @param role name
70 * @return TRUE if the role is a secure application role; FALSE otherwise
71 */
72 FUNCTION is_secure_application_role(p_role VARCHAR2) RETURN BOOLEAN;
73
74 END;