本文整理了Java中org.wso2.carbon.identity.application.common.model.Property.setRequired()
方法的一些代码示例,展示了Property.setRequired()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.setRequired()
方法的具体详情如下:
包路径:org.wso2.carbon.identity.application.common.model.Property
类名称:Property
方法名:setRequired
暂无
代码示例来源:origin: wso2/carbon-identity-framework
} else if ("Required".equals(elementName)) {
if (element.getText() != null && element.getText().trim().length() > 0) {
property.setRequired(Boolean.parseBoolean(element.getText()));
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.common
} else if ("Required".equals(elementName)) {
if (element.getText() != null && element.getText().trim().length() > 0) {
property.setRequired(Boolean.parseBoolean(element.getText()));
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.live
@Override
public List<Property> getConfigurationProperties() {
List<Property> configProperties = new ArrayList<Property>();
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
callbackUrl.setDisplayOrder(3);
configProperties.add(callbackUrl);
Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Microsoft Live client identifier value");
clientId.setDisplayOrder(1);
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Microsoft Live client secret value");
clientSecret.setDisplayOrder(2);
configProperties.add(clientSecret);
return configProperties;
}
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social
@Override
public List<Property> getConfigurationProperties() {
List<Property> configProperties = new ArrayList<Property>();
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
callbackUrl.setDisplayOrder(3);
configProperties.add(callbackUrl);
Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Microsoft Live client identifier value");
clientId.setDisplayOrder(1);
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Microsoft Live client secret value");
clientSecret.setDisplayOrder(2);
configProperties.add(clientSecret);
return configProperties;
}
@Override
public List<Property> getConfigurationProperties() {
List<Property> configProperties = new ArrayList<Property>();
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
callbackUrl.setDisplayOrder(3);
configProperties.add(callbackUrl);
Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Microsoft Live client identifier value");
clientId.setDisplayOrder(1);
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Microsoft Live client secret value");
clientSecret.setDisplayOrder(2);
configProperties.add(clientSecret);
return configProperties;
}
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Yahoo IDP client identifier value");
clientId.setDisplayOrder(1);
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Yahoo IDP client secret value");
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Yahoo IDP client identifier value");
clientId.setDisplayOrder(1);
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Yahoo IDP client secret value");
username.setDisplayName("Username");
username.setDisplayOrder(1);
username.setRequired(true);
userPassword.setConfidential(true);
userPassword.setDisplayOrder(2);
userPassword.setRequired(true);
userEndpoint.setDisplayName("User Endpoint");
userEndpoint.setDisplayOrder(3);
userEndpoint.setRequired(true);
代码示例来源:origin: wso2/carbon-identity-framework
property.setDescription(source.getDescription());
property.setDisplayOrder(source.getDisplayOrder());
property.setRequired(source.isRequired());
property.setType(source.getType());
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Google IDP client identifier value");
clientId.setDisplayOrder(1);
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Google IDP client secret value");
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Google IDP client identifier value");
clientId.setDisplayOrder(1);
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
clientSecret.setDescription("Enter Google IDP client secret value");
内容来源于网络,如有侵权,请联系作者删除!