id static method

int id(
  1. String name
)

Implementation

static int id(String name) {
  if (name == null) return 0;
  switch (name) {
    case 'ssh-ed25519':
      return ED25519;
    case 'ecdsa-sha2-nistp256':
      return ECDSA_SHA2_NISTP256;
    case 'ecdsa-sha2-nistp384':
      return ECDSA_SHA2_NISTP384;
    case 'ecdsa-sha2-nistp521':
      return ECDSA_SHA2_NISTP521;
    case 'ssh-rsa':
      return RSA;
    default:
      return 0;
  }
}