org.wso2.carbon.identity.application.common.model.Property.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(13.0k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.wso2.carbon.identity.application.common.model.Property.<init>()方法的一些代码示例,展示了Property.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.<init>()方法的具体详情如下:
包路径:org.wso2.carbon.identity.application.common.model.Property
类名称:Property
方法名:<init>

Property.<init>介绍

暂无

代码示例

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.common

private Property[] addUniqueIdProperty(Property [] properties) {
  if (ArrayUtils.isEmpty(properties)){
    return new Property[0];
  }
  String uuid = UUID.randomUUID().toString();
  Property uniqueIdProperty = new Property();
  uniqueIdProperty.setName(IdentityApplicationConstants.UNIQUE_ID_CONSTANT);
  uniqueIdProperty.setValue(uuid);
  if (log.isDebugEnabled()){
    log.debug("Adding uniqueId property: " + uuid);
  }
  properties = (Property[]) ArrayUtils.add(properties, uniqueIdProperty);
  return properties;
}

代码示例来源:origin: wso2/carbon-identity-framework

private Property[] addUniqueIdProperty(Property [] properties) {
  if (ArrayUtils.isEmpty(properties)){
    return new Property[0];
  }
  String uuid = UUID.randomUUID().toString();
  Property uniqueIdProperty = new Property();
  uniqueIdProperty.setName(IdentityApplicationConstants.UNIQUE_ID_CONSTANT);
  uniqueIdProperty.setValue(uuid);
  if (log.isDebugEnabled()){
    log.debug("Adding uniqueId property: " + uuid);
  }
  properties = (Property[]) ArrayUtils.add(properties, uniqueIdProperty);
  return properties;
}

代码示例来源:origin: wso2/carbon-identity-framework

Property property = new Property();

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.common

Property property = new Property();

代码示例来源: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.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;
}

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.live/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

Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
configProperties.add(clientSecret);
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback URL");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.yahoo/org.wso2.carbon.identity.application.authenticator.yahoo

Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
configProperties.add(clientSecret);
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback URL");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.social

Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
configProperties.add(clientSecret);
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
configProperties.add(callbackUrl);
Property scope = new Property();
scope.setDisplayName("Additional Query Parameters");
scope.setName("AdditionalQueryParameters");

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.google/org.wso2.carbon.identity.application.authenticator.google

Property clientId = new Property();
clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
clientId.setDisplayName("Client Id");
configProperties.add(clientId);
Property clientSecret = new Property();
clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
clientSecret.setDisplayName("Client Secret");
configProperties.add(clientSecret);
Property callbackUrl = new Property();
callbackUrl.setDisplayName("Callback Url");
callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
configProperties.add(callbackUrl);
Property scope = new Property();
scope.setDisplayName("Additional Query Parameters");
scope.setName("AdditionalQueryParameters");

代码示例来源:origin: org.wso2.carbon.identity.governance/org.wso2.carbon.identity.governance

Property newProperty = new Property();
newProperty.setName(connectorProperty);
newProperty.setDescription(list.get(i).getPropertyDescriptionMapping().get(connectorProperty));

代码示例来源:origin: wso2/carbon-identity-framework

/**
 * Get the configurations of a tenant from cache or database
 *
 * @param tenantDomain Domain name of the tenant
 * @return Configurations belong to the tenant
 */
private static Property[] getResidentIdpConfiguration(String tenantDomain) throws FrameworkException {
  IdpManager identityProviderManager = IdentityProviderManager.getInstance();
  IdentityProvider residentIdp = null;
  try {
    residentIdp = identityProviderManager.getResidentIdP(tenantDomain);
  } catch (IdentityProviderManagementException e) {
    String errorMsg = String.format("Error while retrieving resident Idp for %s tenant.", tenantDomain);
    throw new FrameworkException(errorMsg, e);
  }
  IdentityProviderProperty[] identityMgtProperties = residentIdp.getIdpProperties();
  Property[] configMap = new Property[identityMgtProperties.length];
  int index = 0;
  for (IdentityProviderProperty identityMgtProperty : identityMgtProperties) {
    if (ALREADY_WRITTEN_PROPERTY.equals(identityMgtProperty.getName())) {
      continue;
    }
    Property property = new Property();
    property.setName(identityMgtProperty.getName());
    property.setValue(identityMgtProperty.getValue());
    configMap[index] = property;
    index++;
  }
  return configMap;
}

代码示例来源:origin: org.wso2.carbon.identity.framework/org.wso2.carbon.identity.application.authentication.framework

/**
 * Get the configurations of a tenant from cache or database
 *
 * @param tenantDomain Domain name of the tenant
 * @return Configurations belong to the tenant
 */
private static Property[] getResidentIdpConfiguration(String tenantDomain) throws FrameworkException {
  IdpManager identityProviderManager = IdentityProviderManager.getInstance();
  IdentityProvider residentIdp = null;
  try {
    residentIdp = identityProviderManager.getResidentIdP(tenantDomain);
  } catch (IdentityProviderManagementException e) {
    String errorMsg = String.format("Error while retrieving resident Idp for %s tenant.", tenantDomain);
    throw new FrameworkException(errorMsg, e);
  }
  IdentityProviderProperty[] identityMgtProperties = residentIdp.getIdpProperties();
  Property[] configMap = new Property[identityMgtProperties.length];
  int index = 0;
  for (IdentityProviderProperty identityMgtProperty : identityMgtProperties) {
    if (ALREADY_WRITTEN_PROPERTY.equals(identityMgtProperty.getName())) {
      continue;
    }
    Property property = new Property();
    property.setName(identityMgtProperty.getName());
    property.setValue(identityMgtProperty.getValue());
    configMap[index] = property;
    index++;
  }
  return configMap;
}

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.governance

continue;
Property property = new Property();
property.setName(identityMgtProperty.getName());
property.setValue(identityMgtProperty.getValue());

代码示例来源:origin: org.wso2.carbon.identity.governance/org.wso2.carbon.identity.governance

continue;
Property property = new Property();
property.setName(identityMgtProperty.getName());
property.setValue(identityMgtProperty.getValue());

代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.oauth2/org.wso2.carbon.identity.oauth

if (inboundRequestConfig.getInboundAuthType().equals(OAUTH2)) {
  Property[] props = inboundRequestConfig.getProperties();
  Property property = new Property();
  property.setName(OAUTH2_CONSUMER_SECRET);
  property.setValue(getClientSecret(inboundRequestConfig.getInboundAuthKey()));

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.oauth

if (inboundRequestConfig.getInboundAuthType().equals(OAUTH2)) {
  Property[] props = inboundRequestConfig.getProperties();
  Property property = new Property();
  property.setName(OAUTH2_CONSUMER_SECRET);
  property.setValue(getClientSecret(inboundRequestConfig.getInboundAuthKey()));

相关文章