static boolean isCOctetStringNullOrNValValid(String value,int length){
  if (value == null) {
    return true;
  }
  if (value.length() == 0) {
    return true;
  }
  if (value.length() == length - 1) {
    return true;
  }
  return false;
}

static boolean isCOctetStringNullOrNValValid ( String value , int length ) { if ( value == null ) { return true ; } if ( value . length ( ) == 0 ) { return true ; } if ( value . length ( ) == length - 1 ) { return true ; } return false ; }
validate the c - octet string
