keyTypeToString static method

String keyTypeToString(
  1. int type
)

Returns a string representation of the key type.

Implementation

static String keyTypeToString(int type) {
  switch (type) {
    case bksKeyTypePrivate:
      return 'PRIVATE';
    case bksKeyTypePublic:
      return 'PUBLIC';
    case bksKeyTypeSecret:
      return 'SECRET';
    default:
      return 'UNKNOWN';
  }
}