クラス ServiceProperties
- java.lang.Object
-
- org.springframework.security.cas.ServiceProperties
- 実装されているすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
- 既知の直属サブクラス
SamlServiceProperties
public class ServiceProperties extends java.lang.Object implements org.springframework.beans.factory.InitializingBeanこの CAS サービスに関連するプロパティを格納します。CAS チケットを処理できる各 Web アプリケーションは、サービスと呼ばれます。このクラスは、Spring Security によって保護されているアプリケーションであるローカル CAS サービスに関連するプロパティを格納します。
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 static java.lang.StringDEFAULT_CAS_ARTIFACT_PARAMETERstatic java.lang.StringDEFAULT_CAS_SERVICE_PARAMETER
コンストラクターの概要
コンストラクター コンストラクター 説明 ServiceProperties()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 voidafterPropertiesSet()java.lang.StringgetArtifactParameter()java.lang.StringgetService()ユーザーが認証しているサービスを表します。java.lang.StringgetServiceParameter()CAS にリクエストを送信するときに検索するようにリクエストパラメーターを構成します。booleanisAuthenticateAllArtifacts()booleanisSendRenew()renewパラメーターを CAS ログイン URL および CAS 検証 URL に送信する必要があるかどうかを示します。voidsetArtifactParameter(java.lang.String artifactParameter)CAS チケットがサーバーから送信されたかどうかを確認するときに検索するようにリクエストパラメーターを構成します。voidsetAuthenticateAllArtifacts(boolean authenticateAllArtifacts)true の場合、null 以外のアーティファクト(チケット)を認証する必要があります。voidsetSendRenew(boolean sendRenew)voidsetService(java.lang.String service)voidsetServiceParameter(java.lang.String serviceParameter)
メソッドの詳細
afterPropertiesSet
public void afterPropertiesSet()
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBeanのafterPropertiesSet
getService
public final java.lang.String getService()
ユーザーが認証しているサービスを表します。このサービスは、Spring で保護されたアプリケーション用のローカル Spring Security システムに属するコールバック URL です。例:
https://www.mycompany.com/application/login/cas
- 戻り値:
- ユーザーが認証しているサービスの URL
isSendRenew
public final boolean isSendRenew()
renewパラメーターを CAS ログイン URL および CAS 検証 URL に送信する必要があるかどうかを示します。trueの場合、(ユーザーが以前に認証されていたとしても)CAS にユーザーを再度認証させます。チケットの検証中に、明示的なログインの結果として生成されたチケットが必要になります。高セキュリティアプリケーションは、おそらくこれをtrueに設定します。デフォルトはfalseで、自動シングルサインオンを提供します。- 戻り値:
renewパラメーターを CAS に送信するかどうか
setSendRenew
public final void setSendRenew(boolean sendRenew)
setService
public final void setService(java.lang.String service)
getArtifactParameter
public final java.lang.String getArtifactParameter()
setArtifactParameter
public final void setArtifactParameter(java.lang.String artifactParameter)
CAS チケットがサーバーから送信されたかどうかを確認するときに検索するようにリクエストパラメーターを構成します。- パラメーター:
artifactParameter- 使用する ID。デフォルトは「チケット」です。
getServiceParameter
public final java.lang.String getServiceParameter()
CAS にリクエストを送信するときに検索するようにリクエストパラメーターを構成します。- 戻り値:
- 使用するサービスパラメーター。デフォルトは「サービス」です。
setServiceParameter
public final void setServiceParameter(java.lang.String serviceParameter)
isAuthenticateAllArtifacts
public final boolean isAuthenticateAllArtifacts()
setAuthenticateAllArtifacts
public final void setAuthenticateAllArtifacts(boolean authenticateAllArtifacts)
true の場合、null 以外のアーティファクト(チケット)を認証する必要があります。さらに、サービスは、このアーティファクトの期待値と確実に一致するように動的に決定されます。- パラメーター:
authenticateAllArtifacts-