[Previous] [Next] [Table of Contents] [Index]
The following operations for SecurityLevel2 interfaces are available to security-aware applications:
2.2 Operations on the AuditChannel Interface
2.3 Operations on the AuditDecision Interface
2.4 Operations on the Credentials Interface
2.5 Operations on the Current Interface
2.6 Operations on the PrincipalAuthenticator Interface
2.7 Operations on the ReceivedCredentials Interface
2.8 Operations on the RequiredRights Interface
2.1 Operations on the AccessDecision Interface
The AccessDecision Interface supports one operation:
The access_allowed operation processes information about a principal's credentials and the target and operation requested so that access decisions can be made. Because the NetCrusader/CORBA security framework calls this operation at all appropriate points, handling access requests for you, applications should rarely need to call this operation.
Syntax
| IDL | |
| Java |
False Access is denied.
2.2 Operations on the AuditChannel Interface
Use the AuditChannel interface to write audit records. This interface supports the following operations and attributes:
audit_write
audit_channel_id
The audit_channel_id attribute is a read-only attribute that contains the identity of the audit channel. By default, NetCrusader/CORBA filters all auditable events to a local log file. You can specify a different log file name by using the
-GradLogFile option at the command line. For more information, see the NetCrusader/CORBA Installation and Operation Guide.
Syntax
| IDL |
|
| Java |
audit_channel_id Audit channel identifier. This value is always SecurityExtension::LogFile.
audit_write
The audit_write operation records information about auditable events to the audit log file. (See the NetCrusader/CORBA Installation and Operation Guide for information on specifying the audit log file.)
Syntax
| IDL | |
| Java |
None.
2.3 Operations on the AuditDecision Interface
The AuditDecision interface supports the following operations and attributes:
audit_needed
audit_channel
The audit_channel attribute provides the audit channel that is associated with this AuditDecision object. The audit record is sent to this audit channel.
Syntax
| IDL | |
| Java |
The Audit Channel object associated with this Audit Decision object.
audit_needed
The audit_needed operation queries the audit policy to determine whether a particular event should be audited. It passes in a value list that represents runtime data, and compares it with the audit policy.
Syntax
| IDL | |
| Java |
The Initiator, Time, and DayOfWeek values can be automatically generated. The RepositoryId can also be generated but this may require an interface repository to be running.
Return Value
True Create an audit record and send it to the audit channel.
False Do not create an audit record.
2.4 Operations on the Credentials Interface
If a Credentials object has a credentials_type of SecReceivedCredentials, it will also support the operations on the ReceivedCredentials interface. See the section Section 2.7 on page 39 for information about the ReceivedCredentials interface.
The Credentials interface supports the following operations:
destroy
get_attributes
is_valid
mechanism
credentials_type
The credentials_type attribute specifies whether the Credentials object was created by the PrincipalAuthenticator object within the current process (own credentials type), or was the received from an incoming client call (received credentials type).
Syntax
| IDL |
|
The destroy operation destroys a Credentials object. Destroy is called automatically when the last Credentials object reference is released, so while NetCrusader/CORBA supports this operation, you should never need to explicitly call it.
Syntax
| IDL | |
| Java |
None. The Credentials object is destroyed.
get_attributes
If the principal was not authenticated, the only information returned is one privilege attribute of type Public.
Syntax
| IDL |
|
| Java |
|
For information about building the AttributeTypeList, see Section A.2 on page 97.
Requested set of attributes about the Credentials object.
is_valid
| IDL | |
| Java |
|
True with UtcT set to all zeros Credentials object is valid and has an unlimited lifetime.
True with UtcT set to absolute time Credentials object is still valid.
False Credentials object has expired.
mechanism
The mechanism attribute specifies the type of mechanism that the Credentials object represents. NetCrusader/CORBA supports a single security mechanism (Kerberos), so mechanism always returns SecurityExtension::TAG_KerberosV5_SEC_MECH_TYPE.
Syntax
| IDL | |
| Java |
Security mechanism that created the Credentials object (SecurityExtension::TAG_KerberosV5_SEC_MECH_TYPE).
2.5 Operations on the Current Interface
The SecurityLevel2::Current interface supports the following operations and attributes:
audit_decision
get_credentials
get_policy
get_security_mechanisms
own_credentials
principal_authenticator
received_credentials
required_rights_object
remove_own_credentials
set_credentials
supported_mechanisms
access_decision
NOTE:
NetCrusader/CORBA automatically verifies that access requirements
are met, so applications should never need to use the AccessDecision object.
Syntax
| IDL | |
| Java |
An object reference to an AccessDecision object.
audit_decision
NetCrusader/CORBA automatically determines whether client or target audit events should be written to the audit channel.
Syntax
| IDL | |
| Java |
An object reference to an AuditDecision object.
get_credentials
For this reason, get_credentials first returns credentials set by set_credentials, followed by the received credentials (if they can be delegated), and finally the own_credentials.
Syntax
| IDL |
|
| Java |
|
The current CredentialsList (invocation credentials).
get_policy
NOTE:
NetCrusader/CORBA does not support the policy types
SecClientInvocationAccess, SecApplicationAccess, and SecNonRepudiation.
Syntax
| IDL |
|
| Java |
A policy object that can be used to obtain more details about the policy being implemented. For example, the secure invocation policy provides the secure association defaults for the object.
get_security_mechanisms
For information about Kerberos features, see the section supported_mechanisms on page 34.
NOTE:
Security names may be shared by multiple objects.
Syntax
| IDL |
|
| Java |
|
Information about the security mechanism protecting the target object.
own_credentials
You do not need to call Credentials::destroy on the credentials returned from this call.
Syntax
| IDL | |
| Java |
A sequence of Credentials object references that the application owns.
principal_authenticator
To create credentials with a client's username and password, such as in a Basic Authentication scenario, do not use the PrincipalAuthenticator object, which updates the application's own_credentials list for the entire process. Instead, call the acquire_credentials operation on the Vault interface, then call Current::set_credentials to use the credentials for outgoing calls.
Syntax
| IDL |
|
| Java |
|
An object reference to the PrincipalAuthenticator object.
received_credentials
You do not need to call Credentials::destroy on the credentials returned from this call.
Syntax
| IDL | |
| Java |
|
The ReceivedCredentials object reference received from the requester.
remove_own_credentials
This operation affects all subsequent processes, not just the current thread. To override the invocation credentials for a single call, use the set_credentials operation (see page 32).
| IDL | |
| Java |
|
NOTE: The RequiredRights interface is described in Section 2.8 on page 42.
| IDL | |
| Java |
|
An object reference to a RequiredRights object.
set_credentials
set_credentials is reset on each incoming call into an intermediate object.
NOTE:
Setting credentials for non-repudiation is not supported.
Syntax
| IDL | |
| Java |
| IDL |
|
| Java |
Security mechanism options list.
2.6 Operations on the PrincipalAuthenticator Interface
The PrincipalAuthenticator interface supports the following operations:
continue_authentication
get_supported_authen_method
authenticate
If you have a NetCrusader/Web or DCE environment that you want to integrate with your CORBA environment, use the SecurityExtension::AuthMethodLoginContext method to pass the DCE login handle as the auth_data value.
Syntax
| IDL | |
| Java |
SecurityExtension::AuthMethodNone
SecurityExtension::AuthMethodKeytab
SecurityExtension::AuthMethodPassword
SecurityExtension::AuthMethodLoginContext
Security::SecAuthFailure Authentication data was inconsistent or erroneous and a Credentials object was not created.
continue_authentication
Call this operation only if the authenticate operation returns the value SecAuthContinue.
NOTE:
NetCrusader/CORBA does not currently support multistep
authentication methods, so the continue_authentication method throws a
CORBA::NO_IMPLEMENT exception.
Syntax
| IDL | |
| Java |
Security::SecAuthExpired Authentication data contained some expired information (such as an expired password). A Credentials object was not created.
get_supported_authen_method
These authentication methods are described in the section authenticate on page 35.
This operation raises a CORBA::BAD_PARAM exception if the system does not support the mechanism.
Syntax
| IDL | |
| Java |
|
List of authentication methods the PrincipalAuthenticator object supports for this mechanism.
2.7 Operations on the ReceivedCredentials Interface
The ReceivedCredentials interface inherits from the Credentials interface, and contains a principal's credentials for a secure association. The ReceivedCredentials interface supports the following operations:
association_options_used
delegation_mode
delegation_state
accepting_credentials
The accepting_credentials attribute contains the credentials used on the accepting side of a secure association negotiation with a remote principal. In most cases, the accepting credentials are the Current object's own_credentials.
Syntax
| IDL | |
| Java |
|
List of accepting credentials.
association_options_used
The association_options_used attribute contains the secure association features in effect for a secure association with a remote principal.
Syntax
| IDL |
|
| Java |
List of association options for security context.
delegation_mode
When delegating credentials, applications must retain the delegation mode returned by this operation.
Syntax
| IDL | |
| Java |
Delegation mode of credentials.
delegation_state
The delegation_state attribute indicates the delegation state of a principal:
For more information about simple and composite delegation states, refer to the section delegation_mode above, or to the NetCrusader/CORBA Overview Guide.
| IDL |
|
| Java |
Delegation state of the client.
2.8 Operations on the RequiredRights Interface
RequiredRights objects contain the rights that a client must have in order to execute an operation. The RequiredRights interface supports the following operations:
set_required_rights
get_required_rights
The get_required_rights operation retrieves the rights that an object or interface requires a client to have before the client can perform the requested operation. If an operation does not have specific required rights associated with it, get_required_rights retrieves the interface's required rights.
Syntax
| IDL | |
| Java |
The set_required_rights operation allows the caller to change an operations's required rights. Operations without their own required rights use the interface's rights. You can not set default rights that apply to all interfaces.
Syntax
| IDL | |
| Java |
[Previous] [Next] [Table of Contents] [Index]
To make comments or ask for help, contact support@gradient.com.