Package com.adobe.aio.auth
Class OAuthContext
- java.lang.Object
-
- com.adobe.aio.auth.OAuthContext
-
- All Implemented Interfaces:
Context
public class OAuthContext extends Object implements Context
Represents an OAuth Client Credentials authentication context. Reference: OAuth Client Credentials
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuthContext.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
SCOPES
Property name for looking up Authentication Scopes in various contexts.-
Fields inherited from interface com.adobe.aio.auth.Context
CLIENT_SECRET
-
-
Constructor Summary
Constructors Constructor Description OAuthContext(String clientSecret, Set<String> scopes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OAuthContext.Builder
builder()
boolean
equals(Object o)
String
getClientSecret()
Set<String>
getScopes()
int
hashCode()
String
toString()
void
validate()
Validates this context is minimally populated and able to function.
-
-
-
Field Detail
-
SCOPES
public static final String SCOPES
Property name for looking up Authentication Scopes in various contexts. Reference: AIO Developer Documentation- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static OAuthContext.Builder builder()
-
validate
public void validate()
Description copied from interface:Context
Validates this context is minimally populated and able to function.
-
getClientSecret
public String getClientSecret()
-
-