public class OAuth2Service
extends com.orientechnologies.orient.core.type.ODocumentWrapper
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
static String |
PROP_ACTIVE
OType.BOOLEAN
If true - so this service can be used for login or register user |
static String |
PROP_API_KEY
OType.STRING
Contains client key |
static String |
PROP_API_SECRET
OType.STRING
Contains client API secret |
static String |
PROP_PROVIDER
OType.STRING
Contains name for IOAuth2Provider |
| Constructor and Description |
|---|
OAuth2Service() |
OAuth2Service(com.orientechnologies.orient.core.record.impl.ODocument iDocument) |
OAuth2Service(String iClassName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiKey() |
String |
getApiSecret() |
String |
getCallback() |
String |
getCallback(com.orientechnologies.orient.core.db.document.ODatabaseDocument db) |
IOAuth2Provider |
getProvider() |
boolean |
isActive() |
OAuth2Service |
setActive(boolean active) |
OAuth2Service |
setApiKey(String key) |
OAuth2Service |
setApiSecret(String secret) |
OAuth2Service |
setProvider(IOAuth2Provider provider) |
public static final String CLASS_NAME
public static final String PROP_API_KEY
OType.STRING
Contains client keypublic static final String PROP_API_SECRET
OType.STRING
Contains client API secretpublic static final String PROP_PROVIDER
OType.STRING
Contains name for IOAuth2Providerpublic static final String PROP_ACTIVE
OType.BOOLEAN
If true - so this service can be used for login or register userpublic OAuth2Service()
public OAuth2Service(String iClassName)
public OAuth2Service(com.orientechnologies.orient.core.record.impl.ODocument iDocument)
public String getApiKey()
public OAuth2Service setApiKey(String key)
public String getApiSecret()
public OAuth2Service setApiSecret(String secret)
public IOAuth2Provider getProvider()
public OAuth2Service setProvider(IOAuth2Provider provider)
public String getCallback()
public String getCallback(com.orientechnologies.orient.core.db.document.ODatabaseDocument db)
public boolean isActive()
public OAuth2Service setActive(boolean active)
Copyright © 2020. All rights reserved.