|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.foundation.AbstractLangridService
jp.go.nict.langrid.foundation.authentication.Authentication
public class Authentication
ユーザ認証のみを行うサービス。 実際にはBASIC認証が行われるので、2重チェックになる。
| コンストラクタの概要 | |
|---|---|
Authentication()
コンストラクタ。 |
|
Authentication(ServiceContext serviceContext)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
boolean |
authenticate(String userId,
String password)
ユーザ認証を行う。 |
boolean |
isAdministrator()
ユーザが管理者であるかどうかを返す。 |
void |
nop()
何もしないメソッド。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Authentication()
public Authentication(ServiceContext serviceContext)
serviceContext - サービスコンテキスト| メソッドの詳細 |
|---|
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public boolean authenticate(@NotEmpty@ValidUserId
String userId,
@NotEmpty
String password)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
AuthenticationService の記述:
AuthenticationService 内の authenticateuserId - ユーザ名。非nullpassword - パスワード。非null
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - パラメータが不正
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 不明なエラーが発生した
UserNotFoundException - ユーザが見つからない@AccessRightValidatedMethod public void nop()
AuthenticationService の記述:
AuthenticationService 内の nop
@AccessRightValidatedMethod
@TransactionMethod
public boolean isAdministrator()
throws AccessLimitExceededException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
AuthenticationService の記述:
AuthenticationService 内の isAdministratorAccessLimitExceededException - アクセス制限に違反した
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 不明なエラーが発生した
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||