|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 必需 | 可选 | 详细信息: 元素 | |||||||||
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface OAuth2ContextConfiguration
Annotation to signal that an OAuth2 authentication should be created and and provided to the enclosing scope (method
or class). Used at the class level it will apply to all test methods (and BeforeOAuth2Context initializers).
Used at the method level it will apply only to the method, overriding any value found on the enclosing class.
| 可选元素摘要 | |
|---|---|
boolean |
initialize
Flag to indicate whether the access token should be initialized before the test method. |
Class<? extends OAuth2ProtectedResourceDetails> |
resource
The resource type to use when obtaining an access token. |
Class<? extends OAuth2ProtectedResourceDetails> |
value
The resource type to use when obtaining an access token. |
public abstract Class<? extends OAuth2ProtectedResourceDetails> value
OAuth2ProtectedResourceDetails. An instance will be constructed by the test framework and used to set up
an OAuth2 authentication context. The strategy used for instantiating the value provided might vary depending on
the consumer. Defaults to the value of resource() if not provided.
OAuth2ContextConfiguration.Password,
OAuth2ContextConfiguration.Implicit,
OAuth2ContextConfiguration.ClientCredentialspublic abstract Class<? extends OAuth2ProtectedResourceDetails> resource
OAuth2ContextConfiguration.Password. Intended to be used as an
alias for value().
public abstract boolean initialize
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 必需 | 可选 | 详细信息: 元素 | |||||||||