All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.iovation.launchkey.sdk.client.OrganizationFactory Maven / Gradle / Ivy

Go to download

SDK for interacting with the LaunchKey distributed authentication and authorization platform

There is a newer version: 4.10.0
Show newest version
/**
 * Copyright 2017 iovation, Inc.
 * 

* Licensed under the MIT License. * You may not use this file except in compliance with the License. * A copy of the License is located in the "LICENSE.txt" file accompanying * this file. This file is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.iovation.launchkey.sdk.client; import com.iovation.launchkey.sdk.transport.Transport; import java.util.UUID; public class OrganizationFactory { private final Transport transport; private final UUID organizationId; public OrganizationFactory(Transport transport, UUID organizationId) { this.transport = transport; this.organizationId = organizationId; } public DirectoryClient makeDirectoryClient(String directoryId) { if (directoryId == null) throw new IllegalArgumentException("Argument directoryId cannot be null"); UUID directoryUUID = UUID.fromString(directoryId); return new BasicDirectoryClient(directoryUUID, transport); } public ServiceClient makeServiceClient(String serviceId) { if (serviceId == null) throw new IllegalArgumentException("Argument serviceId cannot be null"); UUID serviceUUID = UUID.fromString(serviceId); return new BasicServiceClient(serviceUUID, transport); } public OrganizationClient makeOrganizationClient() { return new BasicOrganizationClient(organizationId, transport); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy