use of com.hw.helper.ClientType in project mt-auth by publicdevop2019.
the class ClientUtility method getInvalidClientAsResource.
public static Client getInvalidClientAsResource(String... resourceIds) {
Client client = getClientRaw(resourceIds);
Set<ClientType> strings = new HashSet<>();
strings.add(ClientType.FRONTEND_APP);
strings.add(ClientType.FIRST_PARTY);
client.setTypes(strings);
client.setResourceIndicator(true);
return client;
}
use of com.hw.helper.ClientType in project mt-auth by publicdevop2019.
the class ClientUtility method getClientAsResource.
public static Client getClientAsResource(String... resourceIds) {
Client client = getClientRaw(resourceIds);
client.setResourceIndicator(true);
Set<ClientType> strings = new HashSet<>();
strings.add(ClientType.BACKEND_APP);
strings.add(ClientType.FIRST_PARTY);
client.setTypes(strings);
return client;
}
use of com.hw.helper.ClientType in project mt-auth by publicdevop2019.
the class ClientUtility method getClientAsNonResource.
/**
* get client as non resource.
*
* @return different GRANT_TYPE_PASSWORD client obj
*/
public static Client getClientAsNonResource(String... resourceIds) {
Client client = getClientRaw(resourceIds);
client.setResourceIndicator(false);
Set<ClientType> types = new HashSet<>();
types.add(ClientType.BACKEND_APP);
types.add(ClientType.FIRST_PARTY);
client.setTypes(types);
return client;
}
Aggregations