/* * Copyright (c) 2012-2015 iWave Software LLC * All Rights Reserved */ /** * */ package com.iwave.ext.netapp; /** * @author sdorcas * */ public enum NFSSecurityStyle { sys("System"), krb5("Kerberos 5"), krb5i("Kerberos 5i"), krb5p("Kerberos 5p"); private String label; NFSSecurityStyle(String label) { this.label = label; } public static NFSSecurityStyle valueOfLabel(String label) { for (NFSSecurityStyle t : values()) { if (label.equals(t.label)) { return t; } } throw new IllegalArgumentException(label + " is not a valid label for NFSSecurityStyle"); } @Override public String toString() { return label; } public static NFSSecurityStyle valueOfName(String label) { for (NFSSecurityStyle t : values()) { if (label.equals(t.name())) { return t; } } throw new IllegalArgumentException(label + " is not a valid label for NFSSecurityStyle"); } }