org.omg.SecurityLevel2
Interface Credentials


public abstract interface Credentials
extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity


Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 SecAttribute[] get_attributes(AttributeType[] attributes)
          Gets the attribute list attached to the credentials.
 boolean is_valid(org.omg.TimeBase.UtcTHolder expiry_time)
          Checks status of credentials.
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

get_attributes

public SecAttribute[] get_attributes(AttributeType[] attributes)
Gets the attribute list attached to the credentials.

This method returns the attribute list attached to the client's credentials. In the list of attribute types, you are required to include only the type value(s) for the attributes you want returned in the AttributeList. Attributes are not currently returned based on attribute-family or identities. In most cases, the attribute list returned is the same you would get if you invoked SecurityLevel1.Current.get_attributes(), since there is only one valid set of credentials in the client at any instance in time. The results could be different if the credentials are not currently in use.


is_valid

public boolean is_valid(org.omg.TimeBase.UtcTHolder expiry_time)
Checks status of credentials.

This method returns TRUE if the credentials used are active at the time; that is, you did not invoke Tobj.PrincipalAuthenticator.logoff() or Tobj_Bootstrap.destroy_current(). If this method is invoked after Tobj.PrincipalAuthenticator.logoff(), FALSE is returned. If this method is invoked after Tobj_Bootstrap.destroy_current(), the org.omg.CORBA.BAD_INV_ORDER exception is raised.