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

io.imunity.rest.mappers.authn.AuthenticationOptionsSelectorMapper Maven / Gradle / Ivy

/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package io.imunity.rest.mappers.authn;

import io.imunity.rest.api.types.authn.RestAuthenticationOptionsSelector;
import pl.edu.icm.unity.base.authn.AuthenticationOptionsSelector;

public class AuthenticationOptionsSelectorMapper
{
	public static RestAuthenticationOptionsSelector map(AuthenticationOptionsSelector authenticationOptionsSelector)
	{
		return RestAuthenticationOptionsSelector.builder()
				.withAuthenticatorKey(authenticationOptionsSelector.authenticatorKey)
				.withOptionKey(authenticationOptionsSelector.optionKey)
				.build();
	}

	public static AuthenticationOptionsSelector map(RestAuthenticationOptionsSelector restAuthenticationOptionsSelector)
	{
		return new AuthenticationOptionsSelector(restAuthenticationOptionsSelector.authenticatorKey,
				restAuthenticationOptionsSelector.optionKey);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy