Enum TrustLevel

  • All Implemented Interfaces:
    Serializable, Comparable<TrustLevel>

    public enum TrustLevel
    extends Enum<TrustLevel>
    A Trust Level (TL) describes the trustworthiness of a joynr user and the device he uses to connect to the joynr backend or other joynr participants. There are four levels of trustworthiness: HIGH, MID, LOW and NONE. Note that NONE refers to a completely untrusted, non-authenticated user. All other TLs are specified by requirements regarding the device used to establish a connection (e.g. vehicle, mobile phone, etc.) and the local authentication methods unlocking a user???s certificate (e.g. passwords, biometric authentication, etc.).
    • Enum Constant Detail

      • HIGH

        public static final TrustLevel HIGH
        description missing in Franca model.
      • MID

        public static final TrustLevel MID
        description missing in Franca model.
      • LOW

        public static final TrustLevel LOW
        description missing in Franca model.
      • NONE

        public static final TrustLevel NONE
        description missing in Franca model.
    • Method Detail

      • values

        public static TrustLevel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TrustLevel c : TrustLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TrustLevel valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getEnumValue

        public static TrustLevel getEnumValue​(Integer ordinal)
        Get the matching enum for an ordinal number
        Parameters:
        ordinal - The ordinal number
        Returns:
        The matching enum for the given ordinal number
      • getOrdinal

        public Integer getOrdinal()
        Get the matching ordinal number for this enum
        Returns:
        The ordinal number representing this enum