Examples of OpenIDAdminDO


Examples of org.wso2.carbon.identity.core.model.OpenIDAdminDO

    private static final String OPENID_PATTERN_2 = "https://{user}.yourdomain/openid";

    public OpenIDConfigurationDTO getOpenIDConfiguration(String userName, String domainName)
            throws Exception {
        IdentityPersistenceManager persistenceManager = null;
        OpenIDAdminDO opdo = null;
        OpenIDConfigurationDTO configuration = null;

        persistenceManager = IdentityPersistenceManager.getPersistanceManager();
        opdo = persistenceManager.getOpenIDAdmin(IdentityTenantUtil.getRegistry());
        configuration = new OpenIDConfigurationDTO();
        configuration.setUserName(userName);
        configuration.setDomainName(domainName);
        if (opdo != null) {
            configuration.setSubDomain(opdo.getSubDomain());
            configuration.setTenantOpenIDPattern(opdo.getTenantOpenIDPattern());
        } else {
            configuration.setSubDomain("identity");
        }       
        configuration.setDefaultOpenIDPattern(DEFAULT_OPENID_PATTERN);
        configuration.setAvailableTenantOpenIDPattern(new String[] { OPENID_PATTERN_1,
View Full Code Here

Examples of org.wso2.carbon.identity.core.model.OpenIDAdminDO

    }

    public void createOrUpdateOpenIDCOnfiguration(OpenIDConfigurationDTO configuration)
            throws Exception {
        IdentityPersistenceManager persistenceManager = null;
        OpenIDAdminDO opdo = null;

        persistenceManager = IdentityPersistenceManager.getPersistanceManager();
        opdo = new OpenIDAdminDO();
        opdo.setSubDomain(configuration.getSubDomain());
        opdo.setTenantOpenIDPattern(configuration.getTenantOpenIDPattern());
        persistenceManager.createOrUpdateOpenIDAdmin(IdentityTenantUtil.getRegistry(), opdo);
    }
View Full Code Here

Examples of org.wso2.carbon.identity.core.model.OpenIDAdminDO

     * @param hostName
     * @return
     * @throws IdentityException
     */
    public OpenIDAdminDO getOpenIDAdminDO() throws IdentityException {
        OpenIDAdminDO opdo = null;
        Resource resource = null;

        if (log.isDebugEnabled()) {
            log.debug("Retreiving OpenID admin for tenant");
        }
View Full Code Here

Examples of org.wso2.carbon.identity.core.model.OpenIDAdminDO

    /**
     * {@inheritDoc}
     */
    protected OpenIDAdminDO resourceToObject(Resource resource) {
        OpenIDAdminDO opdo = null;
        if (resource != null) {
            opdo = new OpenIDAdminDO();
            String subDomain = resource.getProperty(IdentityRegistryResources.SUB_DOMAIN);
            String openIDPattern = resource.getProperty(IdentityRegistryResources.OPENID_PATTERN);
            opdo.setSubDomain(subDomain);
            opdo.setTenantOpenIDPattern(openIDPattern);
        }
        return opdo;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.