public class HttpConstraintElement extends ObjectSE
HttpConstraint
アノテーション値の Java クラス表現。コンストラクターと説明 |
---|
HttpConstraintElement() デフォルトの HTTP 制約要素を構築します |
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic semantic) EmptyRoleSemantic.DENY を確立するための便利なコンストラクター |
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic semantic, ServletSecurity.TransportGuarantee guarantee, StringSE... roleNames) getEmptyRoleSemantic、getRolesAllowed、getTransportGuarantee のすべてを確立するためのコンストラクター。 |
HttpConstraintElement(ServletSecurity.TransportGuarantee guarantee, StringSE... roleNames) 空でない getRolesAllowed および / または TransportGuarantee.CONFIDENTIAL を確立するためのコンストラクター。 |
修飾子と型 | メソッドと説明 |
---|---|
ServletSecurity.EmptyRoleSemantic | getEmptyRoleSemantic() デフォルトの認可セマンティクスを取得します。 |
StringSE[] | getRolesAllowed() 認可されたロールの名前を取得します。 |
ServletSecurity.TransportGuarantee | getTransportGuarantee() トランスポート接続で満たす必要があるデータ保護要件(つまり、SSL/TLS が必要かどうか)を取得します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public HttpConstraintElement()
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic semantic)
semantic
- EmptyRoleSemantic.DENY である必要があります public HttpConstraintElement(ServletSecurity.TransportGuarantee guarantee, StringSE... roleNames)
guarantee
- TransportGuarantee.NONE または TransportGuarantee.CONFIDENTIAL roleNames
- アクセスが許可されるロールの名前 public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic semantic, ServletSecurity.TransportGuarantee guarantee, StringSE... roleNames)
semantic
- EmptyRoleSemantic.DENY または EmptyRoleSemantic.PERMIT guarantee
- TransportGuarantee.NONE または TransportGuarantee.CONFIDENTIAL roleNames
- アクセスが許可されるロールの名前、またはセマンティックが EmptyRoleSemantic.DENY の場合は欠落 public ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
この値は、getRolesAllowed
が空でない配列を返す場合には意味がなく、getRolesAllowed に空でない配列が指定されている場合は指定しないでください。
getRolesAllowed
が空の(つまり長さがゼロの)配列を返すときに適用される ServletSecurity.EmptyRoleSemantic
public ServletSecurity.TransportGuarantee getTransportGuarantee()
ServletSecurity.TransportGuarantee
public StringSE[] getRolesAllowed()
getRolesAllowed に重複するロール名があっても意味がないため、破棄してもかまいません。文字列 "*" は、ロール名として特別な意味を持ちません (getRolesAllowed に出現した場合)。
getEmptyRoleSemantic()
の値に依存します。その値が DENY であり、getRolesAllowed
が空の配列を返す場合、アクセスは認証状態と ID に関係なく拒否されます。逆に、その値が PERMIT
の場合、認証状態と ID に関係なくアクセスが許可されることを示します。配列に 1 つまたは複数のロールの名前が含まれている場合、アクセスが少なくとも 1 つの名前付きロールのメンバーシップに依存していることを示します(getEmptyRoleSemantic()
の値とは無関係)。Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.