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

info.unterrainer.commons.opcuabrowser.dtos.SecurityMode Maven / Gradle / Ivy

The newest version!
package info.unterrainer.commons.opcuabrowser.dtos;

import java.util.HashMap;
import java.util.Map;

import lombok.Getter;

public enum SecurityMode {

	INVALID("Invalid"),
	NONE("None"),
	SIGN("Sign"),
	SIGN_AND_ENCRYPT("SignAndEncrypt");

	@Getter
	private String name;

	private static final Map BY_NAME = new HashMap<>();

	static {
		for (SecurityMode e : values())
			BY_NAME.put(e.name, e);
	}

	SecurityMode(final String name) {
		this.name = name;
	}

	public static SecurityMode of(final String name) {
		return BY_NAME.get(name);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy