/*******************************************************************************
 * Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *
 *******************************************************************************/
package org.eclipse.kapua.service.authentication.credential;

import org.eclipse.kapua.model.KapuaEntityFactory;
import org.eclipse.kapua.model.KapuaObjectFactory;
import org.eclipse.kapua.model.id.KapuaId;

/**
 * Credential factory service definition.
 * 
 * @since 1.0
 * 
 */
public interface CredentialFactory extends KapuaEntityFactory<Credential, CredentialCreator, CredentialQuery, CredentialListResult>
{

    /**
     * Create a new {@link Credential}
     *
     * @param scopeId
     * @param userId
     * @param credentialType
     * @param credentialKey
     * @return
     */
    public Credential newCredential(KapuaId scopeId, KapuaId userId, CredentialType credentialType, String credentialKey);
    
    /**
     * Create a new {@link CredentialCreator} for the specific credential type
     * 
     * @param scopeId
     * @param userId
     * @param credentialType
     * @param credentialKey
     * @return
     */
    public CredentialCreator newCreator(KapuaId scopeId, KapuaId userId, CredentialType credentialType, String credentialKey);

}

@@ -664,59 +664,8 @@
 ry;%0A
-import org.eclipse.kapua.model.KapuaObjectFactory;%0A
 impo
@@ -752,17 +752,16 @@
 tion.%0A *
- 
 %0A * @sin
@@ -769,17 +769,16 @@
 e 1.0%0A *
- 
 %0A */%0Apub
@@ -905,17 +905,17 @@
 tResult%3E
-%0A
+ 
 %7B%0A%0A    /
@@ -1209,20 +1209,16 @@
 alKey);%0A
-    
 %0A    /**
@@ -1303,17 +1303,16 @@
 e%0A     *
- 
 %0A     * 

Fix warnings and apply code style