bea ホーム | 製品 | dev2dev | support | askBEA
BEA Logo Tuxedo
 ドキュメントのダウンロード   サイトマップ   用語集 
検索
0

Tuxedo CORBA アプリケーションのセキュリティ機能

 Previous Next Contents Index View as PDF  

DISecurityLevel2_Credentials.is_valid

概要

クリデンシャルのステータスをチェックします。

MIDL マッピング

HRESULT is_valid(
[out] IDispatch** expiry_time,
[in,out,optional] VARIANT* exceptionInfo,
[out,retval] VARIANT_BOOL* returnValue

オートメーション・マッピング

Function is_valid(expiry_time As Object,
[exceptionInfo]) As Boolean

説明

使用されたクリデンシャルがそのときにアクティブな場合、このメソッドは、TRUE を返します。つまり、DITobj_PrincipalAuthenticator.logoff または destroy_current を呼び出していないということです。DITobj_PrincipalAuthenticator.logoff() の後にこのメソッドが呼び出された場合、FALSE が返されます。destroy_current() の後にこのメソッドが呼び出された場合、CORBA::BAD_INV_ORDER 例外が発生します。

戻り値

DITimeBase_UtcT オブジェクトが max に設定された場合に、expiry_time が出力されます。

 


プログラミングの例

ここでは、以下をインプリメントする ActiveX クライアント・アプリケーションの一部を示します。

コード リスト 17-1 Tuxedo 型認証を使用する ActiveX クライアント・アプリケーション

Set objSecurityCurrent = objBootstrap.CreateObject(“Tobj.SecurityCurrent”)
Set objPrincipalAuthenticator = objSecurityCurrent.principal_authenticator

AuthorityType = objPrincipalAuthenticator.get_auth_type
If AuthorityType = TOBJ_APPAUTH Then logonStatus =
oPrincipalAuthenticator.Logon(
UserName,_
ClientName,_
SystemPassword,_
UserPassword
User Data)
End If
     objPrincipalAuthenticator.logoff()

 

Back to Top Previous Next
Contact e-docsContact BEAwebmasterprivacy