本文整理了Java中org.wso2.carbon.identity.application.common.model.Property.setDisplayName()
方法的一些代码示例,展示了Property.setDisplayName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.setDisplayName()
方法的具体详情如下:
包路径:org.wso2.carbon.identity.application.common.model.Property
类名称:Property
方法名:setDisplayName
暂无
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.common
property.setDefaultValue(element.getText());
} else if ("DisplayName".equals(elementName)) {
property.setDisplayName(element.getText());
} else if ("Required".equals(elementName)) {
if (element.getText() != null && element.getText().trim().length() > 0) {
代码示例来源:origin: wso2/carbon-identity-framework
property.setDefaultValue(element.getText());
} else if ("DisplayName".equals(elementName)) {
property.setDisplayName(element.getText());
} else if ("Required".equals(elementName)) {
if (element.getText() != null && element.getText().trim().length() > 0) {
代码示例来源:origin: org.wso2.carbon.extension.identity.authenticator/org.wso2.carbon.extension.identity.sso.cas
@Override
public Property[] getConfigurationProperties() {
Property appType = new Property();
appType.setName(IdentityConstants.ServerConfig.WELLKNOWN_APPLICATION_TYPE);
appType.setType("hidden");
appType.setValue(getConfigName());
appType.setDisplayName(IdentityConstants.ServerConfig.WELLKNOWN_APPLICATION_TYPE);
Property service = new Property();
service.setName(CASSSOConstants.SERVICE_PROVIDER_ARGUMENT);
service.setDisplayName(CASSSOConstants.CAS_SERVICE_URL);
return new Property[]{appType, service};
}
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social
/**
* Get Configuration Properties
*
* @return
*/
@Override
public List<Property> getConfigurationProperties() {
List<Property> configProperties = new ArrayList<Property>();
Property oauthEndpoint = new Property();
oauthEndpoint.setDisplayName("Yahoo Authentication Endpoint");
oauthEndpoint.setName(YahooOpenIDAuthenticatorConstants.YAHOO_AUTHZ_URL);
oauthEndpoint.setValue(IdentityApplicationConstants.YAHOO_AUTHZ_URL);
oauthEndpoint.setDescription("Enter value corresponding to yahoo oauth endpoint.");
oauthEndpoint.setDisplayOrder(1);
configProperties.add(oauthEndpoint);
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.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;
}
username.setDisplayName("Username");
username.setDisplayOrder(1);
username.setRequired(true);
userPassword.setDisplayName("Password");
userPassword.setConfidential(true);
userPassword.setDisplayOrder(2);
userEndpoint.setDisplayName("User Endpoint");
userEndpoint.setDisplayOrder(3);
userEndpoint.setRequired(true);
groupEndpoint.setDisplayName("Group Endpoint");
groupEndpoint.setDisplayOrder(4);
userStoreDomain.setDisplayName("User Store Domain");
userStoreDomain.setDisplayOrder(5);
passwordProvisioning.setDisplayName("Enable Password Provisioning");
passwordProvisioning.setDescription("Enable User password provisioning to a SCIM2 domain");
passwordProvisioning.setDisplayOrder(6);
defaultPassword.setDisplayName("Default Password");
defaultPassword.setDisplayOrder(7);
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Yahoo IDP client identifier value");
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
callbackUrl.setDisplayName("Callback URL");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Yahoo IDP client identifier value");
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
callbackUrl.setDisplayName("Callback URL");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.governance
public ConnectorConfig[] getConnectorList() throws IdentityGovernanceException {
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
identityGovernanceService = new IdentityGovernanceServiceImpl();
List<IdentityGovernanceConnector> list = IdentityMgtServiceDataHolder.getInstance()
.getIdentityGovernanceConnectorList();
Property[] properties = identityGovernanceService.getConfiguration(tenantDomain);
ConnectorConfig[] configs = new ConnectorConfig[list.size()];
String[] connectorProperties;
for (int i=0; i<list.size();i++) {
ConnectorConfig config =new ConnectorConfig();
Map <String,String> friendlyNames = list.get(i).getPropertyNameMapping();
config.setFriendlyName(list.get(i).getFriendlyName());
connectorProperties = list.get(i).getPropertyNames();
Property[] configProperties = new Property[connectorProperties.length];
for (int j=0; j<connectorProperties.length;j++) {
for (int k = 0; k < properties.length; k++) {
if (connectorProperties[j].equals(properties[k].getName())) {
configProperties[j] = properties[k];
configProperties[j].setDisplayName(friendlyNames.get(configProperties[j].getName()));
break;
}
}
}
config.setProperties(configProperties);
configs[i] = config;
}
return configs;
}
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Google IDP client identifier value");
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
scope.setDisplayName("Additional Query Parameters");
scope.setName("AdditionalQueryParameters");
scope.setValue("scope=openid email profile");
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social
clientId.setDisplayName("Client Id");
clientId.setRequired(true);
clientId.setDescription("Enter Google IDP client identifier value");
clientSecret.setDisplayName("Client Secret");
clientSecret.setRequired(true);
clientSecret.setConfidential(true);
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
callbackUrl.setDescription("Enter value corresponding to callback url.");
scope.setDisplayName("Additional Query Parameters");
scope.setName("AdditionalQueryParameters");
scope.setValue("scope=openid email profile");
代码示例来源:origin: org.wso2.carbon.identity.governance/org.wso2.carbon.identity.governance
if (connectorProperty.equals(property.getName())) {
configProperties[j] = property;
configProperties[j].setDisplayName(propertyFriendlyNames.get(configProperties[j].getName()));
configProperties[j].setDescription(propertyDescriptions.get(configProperties[j].getName()));
propertyExists = true;
newProperty.setName(connectorProperty);
newProperty.setDescription(list.get(i).getPropertyDescriptionMapping().get(connectorProperty));
newProperty.setDisplayName(list.get(i).getPropertyNameMapping().get(connectorProperty));
Properties defaultPropertyValues = list.get(i).getDefaultPropertyValues(tenantDomain);
newProperty.setValue(String.valueOf(defaultPropertyValues.get(connectorProperty)));
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.saml.cloud/org.wso2.carbon.identity.sso.saml.cloud
Property issuer = new Property();
issuer.setName(SAMLSSOConstants.SAMLFormFields.ISSUER);
issuer.setDisplayName("Issuer");
appType.setType("hidden");
appType.setValue(getConfigName());
appType.setDisplayName("UI Config Type");
acsurls.setDisplayName("Assertion Consumer URLs");
acsurls.setDescription("The url where you should redirected after authenticated.");
defaultacs.setDisplayName("Default Assertion Consumer URL");
nameid.setDisplayName("NameID format ");
nameid.setType("hidden");
alias.setDisplayName("Certificate Alias");
alias.setType("hidden");
certificate.setDisplayName("Certificate");
metadata.setDisplayName("Metadata File");
metadata.setType("hidden");
signAlgo.setDisplayName("Response Signing Algorithm ");
signAlgo.setValue("http://www.w3.org/2000/09/xmldsig#rsa-sha1");
signAlgo.setType("hidden");
digestAlgo.setDisplayName("Response Digest Algorithm ");
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.saml.cloud/org.wso2.carbon.identity.sso.saml.cloud
Property issuer = new Property();
issuer.setName(SAMLSSOConstants.SAMLFormFields.ISSUER);
issuer.setDisplayName("Issuer");
issuer.setValue("https://saml.salesforce.com");
issuer.setDefaultValue("https://saml.salesforce.com");
appType.setType("hidden");
appType.setValue(getConfigName());
appType.setDisplayName("UI Config Type");
acsurls.setDisplayName("Assertion Consumer URLs");
acsurls.setDescription("The url where you should redirected after authenticated.");
enableAtrProf.setDisplayName("Enable Attribute Profile ");
enableAtrProf.setValue("true");
enableAtrProf.setType("hidden");
enableDefaultAtrProf.setDisplayName("Include Attributes in the Response Always ");
enableDefaultAtrProf.setValue("true");
enableDefaultAtrProf.setType("hidden");
metadata.setDisplayName("Metadata File");
metadata.setType("hidden");
acsindex.setName(SAMLSSOConstants.SAMLFormFields.ACS_INDEX);
acsindex.setType("hidden");
acsindex.setDisplayName("Assertion Consumer Service Index");
try {
acsindex.setValue(Integer.toString(IdentityUtil.getRandomInteger()));
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.saml.cloud/org.wso2.carbon.identity.sso.saml.cloud
issuer.setName(SAMLSSOConstants.SAMLFormFields.ISSUER);
issuer.setValue("https://signin.aws.amazon.com/saml");
issuer.setDisplayName("Issuer");
appType.setType("hidden");
appType.setValue(getConfigName());
appType.setDisplayName("UI Config Type");
acsurls.setType("hidden");
acsurls.setValue("https://signin.aws.amazon.com/saml");
acsurls.setDisplayName("Assertion Consumer URLs");
acsurls.setDescription("The url where you should redirected after authenticated.");
defaultacs.setType("hidden");
defaultacs.setValue("https://signin.aws.amazon.com/saml");
defaultacs.setDisplayName("Default Assertion Consumer URL");
nameid.setDisplayName("NameID format ");
nameid.setType("hidden");
metadata.setDisplayName("Metadata File");
metadata.setType("hidden");
signAlgo.setDisplayName("Response Signing Algorithm ");
signAlgo.setValue("http://www.w3.org/2000/09/xmldsig#rsa-sha1");
signAlgo.setType("hidden");
digestAlgo.setDisplayName("Response Digest Algorithm ");
digestAlgo.setValue("http://www.w3.org/2000/09/xmldsig#sha1");
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.mgt
Property mappedProperty = getMappedProperty(customAuthenticator, propName);
if (mappedProperty != null) {
prop.setDisplayName(mappedProperty.getDisplayName());
prop.setType(mappedProperty.getType());
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.saml.cloud/org.wso2.carbon.identity.sso.saml.cloud
issuer.setName(SAMLSSOConstants.SAMLFormFields.ISSUER);
issuer.setValue("https://www.zuora.com");
issuer.setDisplayName("Issuer");
appType.setType("hidden");
appType.setValue(getConfigName());
appType.setDisplayName("UI Config Type");
acsurls.setValue("https://www.zuora.com/apps/saml/SSO/alias/defaultAlias,https://apisandbox.zuora" +
".com/apps/saml/SSO/alias/defaultAlias");
acsurls.setDisplayName("Assertion Consumer URLs");
acsurls.setDescription("The url where you should redirected after authenticated.");
defaultacs.setName(SAMLSSOConstants.SAMLFormFields.DEFAULT_ACS);
defaultacs.setValue("https://www.zuora.com/apps/saml/SSO/alias/defaultAlias");
defaultacs.setDisplayName("Default Assertion Consumer URL");
nameid.setDisplayName("NameID format ");
nameid.setType("hidden");
metadata.setDisplayName("Metadata File");
metadata.setType("hidden");
certificate.setDisplayName("Certificate");
alias.setDisplayName("Certificate Alias");
alias.setType("hidden");
signAlgo.setDisplayName("Response Signing Algorithm ");
代码示例来源:origin: wso2/carbon-identity-framework
Property mappedProperty = getMappedProperty(customAuthenticator, propName);
if (mappedProperty != null) {
prop.setDisplayName(mappedProperty.getDisplayName());
内容来源于网络,如有侵权,请联系作者删除!