public class PreemptiveAuthSpecImpl extends Object implements PreemptiveAuthSpec, groovy.lang.GroovyObject
Constructor and Description |
---|
PreemptiveAuthSpecImpl(RequestSpecification requestBuilder) |
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
basic(String username,
String password)
Use preemptive http basic authentication.
|
groovy.lang.MetaClass |
getMetaClass() |
RequestSpecification |
oauth2(String accessToken)
OAuth2 sign the request.
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
public PreemptiveAuthSpecImpl(RequestSpecification requestBuilder)
public RequestSpecification basic(String username, String password)
PreemptiveAuthSpec
basic
in interface PreemptiveAuthSpec
username
- The username.password
- The password.public RequestSpecification oauth2(String accessToken)
PreemptiveAuthSpec
oauth2
in interface PreemptiveAuthSpec
accessToken
- The access tokenpublic groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
Copyright © 2010–2022. All rights reserved.