@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface OAuth2ContextConfiguration
BeforeOAuth2Context
initializers).
Used at the method level it will apply only to the method, overriding any value found on the enclosing class.Modifier and Type | Optional Element and Description |
---|---|
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.ClientCredentials
public abstract Class<? extends OAuth2ProtectedResourceDetails> resource
OAuth2ContextConfiguration.Password
. Intended to be used as an
alias for value()
.public abstract boolean initialize
Copyright © 2019. All rights reserved.