protected OldProvider(
@NonNull String name,
@BoolRes int enabledRes,
@StringRes int discoveryEndpointRes,
@StringRes int authEndpointRes,
@StringRes int tokenEndpointRes,
@StringRes int registrationEndpointRes,
@StringRes int clientIdRes,
@StringRes int redirectUriRes,
@StringRes int scopeRes,
@DrawableRes int buttonImageRes,
@StringRes int buttonContentDescriptionRes,
@ColorRes int buttonTextColorRes) {
super(null, buttonImageRes, buttonContentDescriptionRes, buttonTextColorRes, false);
if (!isResSpecified(discoveryEndpointRes)
&& !isResSpecified(authEndpointRes)
&& !isResSpecified(tokenEndpointRes)) {
throw new IllegalArgumentException(
"the discovery endpoint or the auth and token endpoints must be specified");
}
this.name = name;
this.mEnabledRes = checkResSpecified(enabledRes, "enabledRes");
this.mDiscoveryEndpointRes = discoveryEndpointRes;
this.mAuthEndpointRes = authEndpointRes;
this.mTokenEndpointRes = tokenEndpointRes;
this.mRegistrationEndpointRes = registrationEndpointRes;
this.mClientIdRes = clientIdRes;
this.mRedirectUriRes = checkResSpecified(redirectUriRes, "redirectUriRes");
this.mScopeRes = checkResSpecified(scopeRes, "scopeRes");
}
OpenIDIdentityProvider.java 文件源码
java
阅读 43
收藏 0
点赞 0
评论 0
项目:jump.android
作者:
评论列表
文章目录