Package ej.kf

Interface Principal


  • public interface Principal
    This interface represents and identifies the Kernel or a Feature. Identification uses the 6 well-known fields defined in RFC 2253.
     CN      commonName
     L       localityName
     ST      stateOrProvinceName
     O       organizationName
     OU      organizationalUnitName
     C       countryName
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int FIELD_C
      C: Country
      static int FIELD_CN
      CN: Common name
      static int FIELD_L
      L: Locality
      static int FIELD_O
      O: Organization
      static int FIELD_OU
      OU: Organizational Unit
      static int FIELD_ST
      ST: State or Province
    • Method Detail

      • getValue

        String getValue​(int field)
        Gets the value of one of the fields.
        Parameters:
        field - One of the 6 well-known fields.
        Returns:
        the value of the required field.
        Throws:
        IndexOutOfBoundsException - if field is out of bounds.
      • toString

        String toString()
        Gets a string representation of the X.500 distinguished name using the format defined in RFC 2253.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.