public KeyRep(Type type,String algorithm,String format,byte[] encoded){
  if (type == null || algorithm == null || format == null || encoded == null) {
    throw new NullPointerException("invalid null input(s)");
  }
  this.type=type;
  this.algorithm=algorithm;
  this.format=format.toUpperCase(Locale.ENGLISH);
  this.encoded=encoded.clone();
}

public KeyRep ( Type type , String algorithm , String format , byte [ ] encoded ) { if ( type == null || algorithm == null || format == null || encoded == null ) { throw new NullPointerException ( "invalid null input(s)" ) ; } this . type = type ; this . algorithm = algorithm ; this . format = format . toUpperCase ( Locale . ENGLISH ) ; this . encoded = encoded . clone ( ) ; }
construct the alternate key class . < p >
