クラス ServiceProperties

java.lang.ObjectSE
org.springframework.security.cas.ServiceProperties
実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
既知の直属サブクラス
SamlServiceProperties

public class ServiceProperties extends ObjectSE implements org.springframework.beans.factory.InitializingBean
この CAS サービスに関連するプロパティを格納します。

CAS チケットを処理できる各 Web アプリケーションは、サービスと呼ばれます。このクラスは、Spring Security によって保護されているアプリケーションであるローカル CAS サービスに関連するプロパティを格納します。

  • フィールドの詳細

  • コンストラクターの詳細

    • ServiceProperties

      public ServiceProperties()
  • メソッドの詳細

    • afterPropertiesSet

      public void afterPropertiesSet()
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
    • getService

      public final StringSE 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(StringSE service)
    • getArtifactParameter

      public final StringSE getArtifactParameter()
    • setArtifactParameter

      public final void setArtifactParameter(StringSE artifactParameter)
      CAS チケットがサーバーから送信されたかどうかを確認するときに検索するようにリクエストパラメーターを構成します。
      パラメーター:
      artifactParameter - 使用する ID。デフォルトは「チケット」です。
    • getServiceParameter

      public final StringSE getServiceParameter()
      CAS にリクエストを送信するときに検索するようにリクエストパラメーターを構成します。
      戻り値:
      使用するサービスパラメーター。デフォルトは「サービス」です。
    • setServiceParameter

      public final void setServiceParameter(StringSE serviceParameter)
    • isAuthenticateAllArtifacts

      public final boolean isAuthenticateAllArtifacts()
    • setAuthenticateAllArtifacts

      public final void setAuthenticateAllArtifacts(boolean authenticateAllArtifacts)
      true の場合、null 以外のアーティファクト(チケット)を認証する必要があります。さらに、サービスは、このアーティファクトの期待値と確実に一致するように動的に決定されます。
      パラメーター:
      authenticateAllArtifacts -