org.omg.SecurityLevel2
Interface Current

All Known Implementing Classes:
SecurityLevel2CurrentImpl

public interface Current
extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, Current


Method Summary
 Credentials get_credentials(CredentialType cred_type)
          Gets credentials type.
 PrincipalAuthenticator principal_authenticator()
          Returns the PrincipalAuthenticator object.
 void set_credentials(CredentialType cred_type, Credentials cred)
          Sets credentials type.
 
Methods inherited from interface org.omg.SecurityLevel1.Current
get_attributes
 

Method Detail

set_credentials

public void set_credentials(CredentialType cred_type,
                            Credentials cred)
Sets credentials type.

This method can be used only to set SecInvocationCredentials; otherwise, the set_credentials method raises the org.omg.CORBA.BAD_PARAM exception. The credentials must have been obtained from a previous invocation of the SecurityLevel2.Current.get_credentials or SecurityLevel2.PrincipalAuthenticator.authenticate methods.


get_credentials

public Credentials get_credentials(CredentialType cred_type)
Gets credentials type.

This method can be used only to get SecInvocationCredentials; otherwise, the get_credentials method raises the org.omg.CORBA.BAD_PARAM exception. If no credentials are available, the get_credentials method raises the org.omg.CORBA.BAD_INV_ORDER exception.


principal_authenticator

public PrincipalAuthenticator principal_authenticator()
Returns the PrincipalAuthenticator object.

The PrincipalAuthenticator object returned by the principal_authenticator attribute is of actual type Tobj.PrincipalAuthenticator. Therefore, it can be used both as a Tobj.PrincipalAuthenticator and as a SecurityLevel2.PrincipalAuthenticator.

Note: This method raises the org.omg.CORBA.BAD_INV_ORDER exception if it is invoked on an invalid SecurityCurrent object.